|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
Declares events which client code can use to manage OpenGL rendering into a GLAutoDrawable.
More...
Inherits EventListener.
Inherited by com.jogamp.graph.ui.Scene, com.jogamp.newt.util.applet3.VersionApplet3.GLInfo, com.jogamp.newt.util.applet.JOGLNewtAppletBase, com.jogamp.opengl.GLEventAdapter, com.jogamp.opengl.awt.GLJPanel.Updater, com.jogamp.opengl.demos.PointsDemo, com.jogamp.opengl.demos.av.MovieCube, com.jogamp.opengl.demos.av.MovieSimple, com.jogamp.opengl.demos.es2.LandscapeES2, com.jogamp.opengl.demos.es2.RedSquareES2, com.jogamp.opengl.demos.es2.TextureSequenceCubeES2, com.jogamp.opengl.demos.es2.TextureSequenceES2, com.jogamp.opengl.demos.graph.GPURendererListenerBase01, com.jogamp.opengl.demos.graph.TextRendererGLELBase, com.jogamp.opengl.demos.graph.ui.UIGraphDemoU01a.MyRenderer, com.jogamp.opengl.demos.graph.ui.UISceneDemo20, com.jogamp.opengl.demos.graph.ui.UIShapeClippingDemo00, com.jogamp.opengl.demos.graph.ui.UIShapeDemo01, com.jogamp.opengl.demos.graph.ui.UITypeDemo01, com.jogamp.opengl.test.bugs.Bug427GLJPanelTest1, com.jogamp.opengl.test.bugs.Issue326Test1, com.jogamp.opengl.test.bugs.Issue326Test2, com.jogamp.opengl.test.bugs.Issue344Base, com.jogamp.opengl.test.junit.graph.FontViewListener01, com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01, com.jogamp.opengl.test.junit.graph.TextRendererGLELBase, com.jogamp.opengl.test.junit.jogl.acore.GLReadBuffer00BaseAWT.SnapshotGLELAWT, com.jogamp.opengl.test.junit.jogl.acore.TestBug692GL3VAONEWT.GL3VAODemo, com.jogamp.opengl.test.junit.jogl.acore.TestCPUSourcingAPINEWT.Demo, com.jogamp.opengl.test.junit.jogl.acore.TestFBOAutoDrawableFactoryNEWT.MyGLEventListener, com.jogamp.opengl.test.junit.jogl.acore.TestGLAutoDrawableGLCanvasOnOffscrnCapsAWT.MyGLEventListener, com.jogamp.opengl.test.junit.jogl.acore.TestGLAutoDrawableGLWindowOnOffscrnCapsNEWT.MyGLEventListener, com.jogamp.opengl.test.junit.jogl.acore.TestGLAutoDrawableNewtCanvasAWTOnOffscrnCapsAWT.MyGLEventListener, com.jogamp.opengl.test.junit.jogl.acore.TestGLContextSurfaceLockNEWT.MyEventCounter, com.jogamp.opengl.test.junit.jogl.acore.TestGLMesaBug651NEWT.UnitTester, com.jogamp.opengl.test.junit.jogl.acore.TestSharedContextNewtAWTBug523.TwoTriangles, com.jogamp.opengl.test.junit.jogl.acore.TestSharedContextWithJTabbedPaneAWT.DemoInstance.SharedGLPanel, com.jogamp.opengl.test.junit.jogl.acore.TestSingleGLInJSliderNewtAWT.TwoTriangles, com.jogamp.opengl.test.junit.jogl.awt.TestBug1225EventQueueInterruptedAWT.InterruptableGLEL, com.jogamp.opengl.test.junit.jogl.awt.TestBug461FBOSupersamplingSwingAWT, com.jogamp.opengl.test.junit.jogl.awt.TestBug461PBufferSupersamplingSwingAWT, com.jogamp.opengl.test.junit.jogl.awt.TestGLCanvasAWTActionDeadlock02AWT.MiniPApplet.SimpleListener, com.jogamp.opengl.test.junit.jogl.awt.TestGLJPanelReadd01Bug1310AWT.MyRotTriangle, com.jogamp.opengl.test.junit.jogl.awt.text.TextRendererGLEventListener01, com.jogamp.opengl.test.junit.jogl.caps.TestBug605FlippedImageAWT.FlippedImageTest, com.jogamp.opengl.test.junit.jogl.caps.TestBug605FlippedImageNEWT.FlippedImageTest, com.jogamp.opengl.test.junit.jogl.demos.GLClearOnInitReshape, com.jogamp.opengl.test.junit.jogl.demos.GLFinishOnDisplay, com.jogamp.opengl.test.junit.jogl.demos.PointsDemo, com.jogamp.opengl.test.junit.jogl.demos.es1.GearsES1, com.jogamp.opengl.test.junit.jogl.demos.es1.MultisampleDemoES1, com.jogamp.opengl.test.junit.jogl.demos.es1.OlympicES1, com.jogamp.opengl.test.junit.jogl.demos.es1.RedSquareES1, com.jogamp.opengl.test.junit.jogl.demos.es2.ElektronenMultiplizierer, com.jogamp.opengl.test.junit.jogl.demos.es2.FBOMix2DemosES2, com.jogamp.opengl.test.junit.jogl.demos.es2.LandscapeES2, com.jogamp.opengl.test.junit.jogl.demos.es2.LineSquareXDemoES2, com.jogamp.opengl.test.junit.jogl.demos.es2.Mix2TexturesES2, com.jogamp.opengl.test.junit.jogl.demos.es2.MultisampleDemoES2, com.jogamp.opengl.test.junit.jogl.demos.es2.RedSquareES2, com.jogamp.opengl.test.junit.jogl.demos.es2.RedSquareMappedES2, com.jogamp.opengl.test.junit.jogl.demos.es2.TextureDraw01ES2Listener, com.jogamp.opengl.test.junit.jogl.demos.es2.TextureDraw02ES2ListenerFBO, com.jogamp.opengl.test.junit.jogl.demos.es2.TextureSequenceCubeES2, com.jogamp.opengl.test.junit.jogl.demos.es2.awt.Bug816AppletGLCanvas01, com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestBug1431NewtCanvasAWT.JOGLQuadNewt, com.jogamp.opengl.test.junit.jogl.demos.gl2.Gears, com.jogamp.opengl.test.junit.jogl.demos.gl2.Teapot, com.jogamp.opengl.test.junit.jogl.demos.gl2.TextureDraw01GL2Listener, com.jogamp.opengl.test.junit.jogl.demos.gl2.awt.Bug818GLJPanelAndGLCanvasApplet.JOGLQuad, com.jogamp.opengl.test.junit.jogl.demos.gl2.awt.TestGearsAWTAnalyzeBug455.Swapper, com.jogamp.opengl.test.junit.jogl.demos.gl3.GeomShader01TextureGL3, com.jogamp.opengl.test.junit.jogl.demos.gl4.TessellationShader01aGLSL440CoreHardcoded, com.jogamp.opengl.test.junit.jogl.demos.gl4.TessellationShader01bGL4, com.jogamp.opengl.test.junit.jogl.demos.gl4.TriangleInstancedRendererWithShaderState, com.jogamp.opengl.test.junit.jogl.demos.gl4.TrianglesInstancedRendererHardcoded, com.jogamp.opengl.test.junit.jogl.glu.TestBug463ScaleImageMemoryAWT, com.jogamp.opengl.test.junit.jogl.glu.TestBug694ScaleImageUnpackBufferSizeAWT, com.jogamp.opengl.test.junit.jogl.newt.TestSwingAWTRobotUsageBeforeJOGLInitBug411.SwingGLAction, com.jogamp.opengl.test.junit.jogl.offscreen.ReadBufferBase, com.jogamp.opengl.test.junit.jogl.swt.TestNewtCanvasSWTBug628ResizeDeadlockAWT.BigFlashingX, com.jogamp.opengl.test.junit.jogl.util.DemoGL2ES1ImmModeSink, com.jogamp.opengl.test.junit.jogl.util.DemoGL2ES1Plain, com.jogamp.opengl.test.junit.jogl.util.DemoGL2ES1TextureImmModeSink, com.jogamp.opengl.test.junit.jogl.util.DemoGL2ES2ImmModeSink, com.jogamp.opengl.test.junit.util.DumpGLInfo, com.jogamp.opengl.test.junit.util.GLClearColor, com.jogamp.opengl.test.junit.util.GLEventListenerCounter, com.jogamp.opengl.test.junit.util.UITestCase.SnapshotGLEventListener, com.jogamp.opengl.test.junit.util.ValidateLockListener, com.jogamp.opengl.util.CustomGLEventListener, com.jogamp.opengl.util.awt.TextRenderer.DebugListener, and com.jogamp.opengl.util.stereo.StereoClientRenderer.
Public Member Functions | |
| void | init (GLAutoDrawable drawable) |
| Called by the drawable immediately after the OpenGL context is initialized. More... | |
| void | dispose (GLAutoDrawable drawable) |
| Notifies the listener to perform the release of all OpenGL resources per GLContext, such as memory buffers and GLSL programs. More... | |
| void | display (GLAutoDrawable drawable) |
| Called by the drawable to initiate OpenGL rendering by the client. More... | |
| void | reshape (GLAutoDrawable drawable, int x, int y, int width, int height) |
| Called by the drawable during the first repaint after the component has been resized. More... | |
Declares events which client code can use to manage OpenGL rendering into a GLAutoDrawable.
At the time any of these methods is called, the drawable has made its associated OpenGL context current, so it is valid to make OpenGL calls.
Definition at line 47 of file GLEventListener.java.
| void com.jogamp.opengl.GLEventListener.display | ( | GLAutoDrawable | drawable | ) |
Called by the drawable to initiate OpenGL rendering by the client.
After all GLEventListeners have been notified of a display event, the drawable will swap its buffers if setAutoSwapBufferMode is enabled.
Implemented in com.jogamp.opengl.test.junit.jogl.demos.gl4.TessellationShader01aGLSL440CoreHardcoded, com.jogamp.opengl.test.junit.jogl.demos.gl4.TessellationShader01bGL4, com.jogamp.opengl.demos.av.MovieCube, com.jogamp.opengl.demos.av.MovieSBSStereo, com.jogamp.opengl.demos.av.MovieSimple, com.jogamp.opengl.demos.es2.GearsES2, com.jogamp.opengl.demos.es2.LandscapeES2, com.jogamp.opengl.demos.es2.TextureSequenceCubeES2, com.jogamp.opengl.demos.es2.TextureSequenceES2, com.jogamp.opengl.demos.graph.GPURegionGLListener00, com.jogamp.opengl.demos.graph.GPURegionGLListener01, com.jogamp.opengl.demos.graph.GPURegionGLListener10, com.jogamp.opengl.demos.graph.GPUTextRendererListenerBase01, com.jogamp.opengl.demos.graph.ui.UIGraphDemoU01a.MyRenderer, com.jogamp.opengl.demos.graph.ui.UISceneDemo20, com.jogamp.opengl.demos.graph.ui.UIShapeClippingDemo00, com.jogamp.opengl.demos.graph.ui.UIShapeDemo01, com.jogamp.opengl.demos.graph.ui.UITypeDemo01, com.jogamp.graph.ui.Scene, com.jogamp.opengl.GLEventAdapter, com.jogamp.opengl.util.stereo.StereoClientRenderer, com.jogamp.newt.util.applet.JOGLNewtAppletBase, com.jogamp.opengl.test.bugs.Bug427GLJPanelTest1, com.jogamp.opengl.test.bugs.Issue326Test1, com.jogamp.opengl.test.bugs.Issue326Test2, com.jogamp.opengl.test.bugs.Issue344Base, com.jogamp.opengl.test.junit.graph.FontViewListener01, com.jogamp.opengl.test.junit.graph.GPURegionGLListener01, com.jogamp.opengl.test.junit.graph.GPURegionGLListener10, com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01, com.jogamp.opengl.test.junit.jogl.acore.GLReadBuffer00Base.TextRendererGLEL, com.jogamp.opengl.test.junit.jogl.acore.GLReadBuffer00BaseAWT.SnapshotGLELAWT, com.jogamp.opengl.test.junit.jogl.acore.TestGLContextSurfaceLockNEWT.MyEventCounter, com.jogamp.opengl.test.junit.jogl.awt.TestBug461FBOSupersamplingSwingAWT, com.jogamp.opengl.test.junit.jogl.awt.TestBug461PBufferSupersamplingSwingAWT, com.jogamp.opengl.test.junit.jogl.awt.text.TextRendererGLEventListener01, com.jogamp.opengl.test.junit.jogl.demos.es1.GearsES1, com.jogamp.opengl.test.junit.jogl.demos.es1.MultisampleDemoES1, com.jogamp.opengl.test.junit.jogl.demos.es1.RedSquareES1, com.jogamp.opengl.test.junit.jogl.demos.es2.ElektronenMultiplizierer, com.jogamp.opengl.test.junit.jogl.demos.es2.FBOMix2DemosES2, com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2, com.jogamp.opengl.test.junit.jogl.demos.es2.LandscapeES2, com.jogamp.opengl.test.junit.jogl.demos.es2.Mix2TexturesES2, com.jogamp.opengl.test.junit.jogl.demos.es2.TextureDraw01ES2Listener, com.jogamp.opengl.test.junit.jogl.demos.es2.TextureDraw02ES2ListenerFBO, com.jogamp.opengl.test.junit.jogl.demos.es2.TextureSequenceCubeES2, com.jogamp.opengl.test.junit.jogl.demos.gl2.Gears, com.jogamp.opengl.test.junit.jogl.demos.gl2.TextureDraw01GL2Listener, com.jogamp.opengl.test.junit.jogl.demos.gl3.GeomShader01TextureGL3, com.jogamp.opengl.test.junit.jogl.demos.gl4.TriangleInstancedRendererWithShaderState, com.jogamp.opengl.test.junit.jogl.demos.gl4.TrianglesInstancedRendererHardcoded, com.jogamp.opengl.test.junit.jogl.demos.GLClearOnInitReshape, com.jogamp.opengl.test.junit.jogl.demos.GLFinishOnDisplay, com.jogamp.opengl.test.junit.jogl.glu.TestBug463ScaleImageMemoryAWT, com.jogamp.opengl.test.junit.jogl.glu.TestBug694ScaleImageUnpackBufferSizeAWT, com.jogamp.opengl.test.junit.jogl.offscreen.ReadBuffer2File, com.jogamp.opengl.test.junit.jogl.offscreen.ReadBuffer2Screen, com.jogamp.opengl.test.junit.jogl.offscreen.ReadBufferBase, com.jogamp.opengl.test.junit.jogl.util.DemoGL2ES1TextureImmModeSink, com.jogamp.opengl.test.junit.jogl.util.DemoGL2ES2ImmModeSink, com.jogamp.opengl.test.junit.util.DumpGLInfo, com.jogamp.opengl.test.junit.util.GLClearColor, com.jogamp.opengl.test.junit.util.GLEventListenerCounter, com.jogamp.opengl.test.junit.util.UITestCase.SnapshotGLEventListener, com.jogamp.opengl.test.junit.util.ValidateLockListener, com.jogamp.opengl.demos.es2.PointsDemoES2, com.jogamp.opengl.demos.es2.RedSquareES2, com.jogamp.opengl.test.junit.jogl.demos.es1.OlympicES1, com.jogamp.opengl.test.junit.jogl.demos.es1.PointsDemoES1, com.jogamp.opengl.test.junit.jogl.demos.es2.awt.Bug816AppletGLCanvas01, com.jogamp.opengl.test.junit.jogl.demos.es2.LineSquareXDemoES2, com.jogamp.opengl.test.junit.jogl.demos.es2.MultisampleDemoES2, com.jogamp.opengl.test.junit.jogl.demos.es2.PointsDemoES2, com.jogamp.opengl.test.junit.jogl.demos.es2.RedSquareES2, com.jogamp.opengl.test.junit.jogl.demos.es2.RedSquareMappedES2, com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestBug1431NewtCanvasAWT.JOGLQuadNewt, com.jogamp.opengl.test.junit.jogl.demos.gl2.Teapot, com.jogamp.opengl.demos.graph.TextRendererGLELBase, and com.jogamp.opengl.test.junit.graph.TextRendererGLELBase.
| void com.jogamp.opengl.GLEventListener.dispose | ( | GLAutoDrawable | drawable | ) |
Notifies the listener to perform the release of all OpenGL resources per GLContext, such as memory buffers and GLSL programs.
Called by the drawable before the OpenGL context is destroyed by an external event, like a reconfiguration of the GLAutoDrawable closing an attached window, but also manually by calling destroy.
Note that this event does not imply the end of life of the application. It could be produced with a followup call to init(GLAutoDrawable) in case the GLContext has been recreated, e.g. due to a pixel configuration change in a multihead environment.
Implemented in com.jogamp.opengl.test.junit.jogl.demos.gl4.TessellationShader01aGLSL440CoreHardcoded, com.jogamp.opengl.test.junit.jogl.demos.gl4.TessellationShader01bGL4, com.jogamp.opengl.demos.av.MovieCube, com.jogamp.opengl.demos.av.MovieSBSStereo, com.jogamp.opengl.demos.av.MovieSimple, com.jogamp.opengl.demos.es2.GearsES2, com.jogamp.opengl.demos.es2.LandscapeES2, com.jogamp.opengl.demos.es2.TextureSequenceCubeES2, com.jogamp.opengl.demos.es2.TextureSequenceES2, com.jogamp.opengl.demos.graph.GPURendererListenerBase01, com.jogamp.opengl.demos.graph.GPUTextGLListener0A, com.jogamp.opengl.demos.graph.GPUTextRendererListenerBase01, com.jogamp.opengl.demos.graph.TextRendererGLELBase, com.jogamp.opengl.demos.graph.ui.UIGraphDemoU01a.MyRenderer, com.jogamp.opengl.demos.graph.ui.UISceneDemo20, com.jogamp.opengl.demos.graph.ui.UIShapeClippingDemo00, com.jogamp.opengl.demos.graph.ui.UIShapeDemo01, com.jogamp.opengl.demos.graph.ui.UITypeDemo01, com.jogamp.graph.ui.Scene, com.jogamp.opengl.GLEventAdapter, com.jogamp.opengl.util.stereo.StereoClientRenderer, com.jogamp.newt.util.applet.JOGLNewtAppletBase, com.jogamp.opengl.test.bugs.Bug427GLJPanelTest1, com.jogamp.opengl.test.bugs.Issue326Test1, com.jogamp.opengl.test.bugs.Issue326Test2, com.jogamp.opengl.test.bugs.Issue344Base, com.jogamp.opengl.test.junit.graph.FontViewListener01, com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01, com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01, com.jogamp.opengl.test.junit.graph.TextRendererGLELBase, com.jogamp.opengl.test.junit.jogl.acore.GLReadBuffer00Base.TextRendererGLEL, com.jogamp.opengl.test.junit.jogl.acore.GLReadBuffer00BaseAWT.SnapshotGLELAWT, com.jogamp.opengl.test.junit.jogl.acore.TestGLContextSurfaceLockNEWT.MyEventCounter, com.jogamp.opengl.test.junit.jogl.awt.TestBug461FBOSupersamplingSwingAWT, com.jogamp.opengl.test.junit.jogl.awt.TestBug461PBufferSupersamplingSwingAWT, com.jogamp.opengl.test.junit.jogl.awt.text.TextRendererGLEventListener01, com.jogamp.opengl.test.junit.jogl.demos.es1.GearsES1, com.jogamp.opengl.test.junit.jogl.demos.es1.MultisampleDemoES1, com.jogamp.opengl.test.junit.jogl.demos.es1.RedSquareES1, com.jogamp.opengl.test.junit.jogl.demos.es2.ElektronenMultiplizierer, com.jogamp.opengl.test.junit.jogl.demos.es2.FBOMix2DemosES2, com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2, com.jogamp.opengl.test.junit.jogl.demos.es2.LandscapeES2, com.jogamp.opengl.test.junit.jogl.demos.es2.Mix2TexturesES2, com.jogamp.opengl.test.junit.jogl.demos.es2.TextureDraw01ES2Listener, com.jogamp.opengl.test.junit.jogl.demos.es2.TextureDraw02ES2ListenerFBO, com.jogamp.opengl.test.junit.jogl.demos.es2.TextureSequenceCubeES2, com.jogamp.opengl.test.junit.jogl.demos.gl2.Gears, com.jogamp.opengl.test.junit.jogl.demos.gl2.TextureDraw01GL2Listener, com.jogamp.opengl.test.junit.jogl.demos.gl3.GeomShader01TextureGL3, com.jogamp.opengl.test.junit.jogl.demos.gl4.TriangleInstancedRendererWithShaderState, com.jogamp.opengl.test.junit.jogl.demos.gl4.TrianglesInstancedRendererHardcoded, com.jogamp.opengl.test.junit.jogl.demos.GLClearOnInitReshape, com.jogamp.opengl.test.junit.jogl.demos.GLFinishOnDisplay, com.jogamp.opengl.test.junit.jogl.glu.TestBug463ScaleImageMemoryAWT, com.jogamp.opengl.test.junit.jogl.glu.TestBug694ScaleImageUnpackBufferSizeAWT, com.jogamp.opengl.test.junit.jogl.offscreen.ReadBuffer2File, com.jogamp.opengl.test.junit.jogl.offscreen.ReadBuffer2Screen, com.jogamp.opengl.test.junit.jogl.offscreen.ReadBufferBase, com.jogamp.opengl.test.junit.jogl.util.DemoGL2ES1TextureImmModeSink, com.jogamp.opengl.test.junit.util.DumpGLInfo, com.jogamp.opengl.test.junit.util.GLClearColor, com.jogamp.opengl.test.junit.util.GLEventListenerCounter, com.jogamp.opengl.test.junit.util.UITestCase.SnapshotGLEventListener, com.jogamp.opengl.test.junit.util.ValidateLockListener, com.jogamp.opengl.demos.es2.PointsDemoES2, com.jogamp.opengl.demos.es2.RedSquareES2, com.jogamp.opengl.test.junit.jogl.demos.es1.OlympicES1, com.jogamp.opengl.test.junit.jogl.demos.es1.PointsDemoES1, com.jogamp.opengl.test.junit.jogl.demos.es2.awt.Bug816AppletGLCanvas01, com.jogamp.opengl.test.junit.jogl.demos.es2.LineSquareXDemoES2, com.jogamp.opengl.test.junit.jogl.demos.es2.MultisampleDemoES2, com.jogamp.opengl.test.junit.jogl.demos.es2.PointsDemoES2, com.jogamp.opengl.test.junit.jogl.demos.es2.RedSquareES2, com.jogamp.opengl.test.junit.jogl.demos.es2.RedSquareMappedES2, com.jogamp.opengl.test.junit.jogl.util.DemoGL2ES2ImmModeSink, com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestBug1431NewtCanvasAWT.JOGLQuadNewt, and com.jogamp.opengl.test.junit.jogl.demos.gl2.Teapot.
| void com.jogamp.opengl.GLEventListener.init | ( | GLAutoDrawable | drawable | ) |
Called by the drawable immediately after the OpenGL context is initialized.
Can be used to perform one-time OpenGL initialization per GLContext, such as setup of lights and display lists.
Note that this method may be called more than once if the underlying OpenGL context for the GLAutoDrawable is destroyed and recreated, for example if a GLCanvas is removed from the widget hierarchy and later added again.
Implemented in com.jogamp.opengl.test.bugs.Issue326Test1, com.jogamp.opengl.test.bugs.Issue326Test2, com.jogamp.opengl.test.junit.jogl.demos.gl4.TessellationShader01aGLSL440CoreHardcoded, com.jogamp.opengl.test.junit.jogl.demos.gl4.TessellationShader01bGL4, com.jogamp.opengl.demos.av.MovieCube, com.jogamp.opengl.demos.av.MovieSBSStereo, com.jogamp.opengl.demos.av.MovieSimple, com.jogamp.opengl.demos.es2.GearsES2, com.jogamp.opengl.demos.es2.LandscapeES2, com.jogamp.opengl.demos.es2.TextureSequenceCubeES2, com.jogamp.opengl.demos.es2.TextureSequenceES2, com.jogamp.opengl.demos.graph.GPURegionGLListener00, com.jogamp.opengl.demos.graph.GPURegionGLListener01, com.jogamp.opengl.demos.graph.GPURegionGLListener10, com.jogamp.opengl.demos.graph.GPURendererListenerBase01, com.jogamp.opengl.demos.graph.GPUTextGLListener0A, com.jogamp.opengl.demos.graph.GPUTextRendererListenerBase01, com.jogamp.opengl.demos.graph.TextRendererGLELBase, com.jogamp.opengl.demos.graph.ui.UIGraphDemoU01a.MyRenderer, com.jogamp.opengl.demos.graph.ui.UISceneDemo20, com.jogamp.opengl.demos.graph.ui.UIShapeClippingDemo00, com.jogamp.opengl.demos.graph.ui.UIShapeDemo01, com.jogamp.opengl.demos.graph.ui.UITypeDemo01, com.jogamp.graph.ui.Scene, com.jogamp.opengl.GLEventAdapter, com.jogamp.opengl.util.stereo.StereoClientRenderer, com.jogamp.newt.util.applet.JOGLNewtAppletBase, com.jogamp.opengl.test.bugs.Bug427GLJPanelTest1, com.jogamp.opengl.test.bugs.Issue344Base, com.jogamp.opengl.test.junit.graph.FontViewListener01, com.jogamp.opengl.test.junit.graph.GPURegionGLListener01, com.jogamp.opengl.test.junit.graph.GPURegionGLListener10, com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01, com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01, com.jogamp.opengl.test.junit.graph.TextRendererGLELBase, com.jogamp.opengl.test.junit.jogl.acore.GLReadBuffer00BaseAWT.SnapshotGLELAWT, com.jogamp.opengl.test.junit.jogl.acore.TestGLContextSurfaceLockNEWT.MyEventCounter, com.jogamp.opengl.test.junit.jogl.awt.TestBug461FBOSupersamplingSwingAWT, com.jogamp.opengl.test.junit.jogl.awt.TestBug461PBufferSupersamplingSwingAWT, com.jogamp.opengl.test.junit.jogl.awt.text.TextRendererGLEventListener01, com.jogamp.opengl.test.junit.jogl.demos.es1.GearsES1, com.jogamp.opengl.test.junit.jogl.demos.es1.MultisampleDemoES1, com.jogamp.opengl.test.junit.jogl.demos.es1.OlympicES1, com.jogamp.opengl.test.junit.jogl.demos.es1.RedSquareES1, com.jogamp.opengl.test.junit.jogl.demos.es2.ElektronenMultiplizierer, com.jogamp.opengl.test.junit.jogl.demos.es2.FBOMix2DemosES2, com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2, com.jogamp.opengl.test.junit.jogl.demos.es2.LandscapeES2, com.jogamp.opengl.test.junit.jogl.demos.es2.Mix2TexturesES2, com.jogamp.opengl.test.junit.jogl.demos.es2.TextureDraw02ES2ListenerFBO, com.jogamp.opengl.test.junit.jogl.demos.es2.TextureSequenceCubeES2, com.jogamp.opengl.test.junit.jogl.demos.gl2.Gears, com.jogamp.opengl.test.junit.jogl.demos.gl2.Teapot, com.jogamp.opengl.test.junit.jogl.demos.gl2.TextureDraw01GL2Listener, com.jogamp.opengl.test.junit.jogl.demos.gl3.GeomShader01TextureGL3, com.jogamp.opengl.test.junit.jogl.demos.gl4.TriangleInstancedRendererWithShaderState, com.jogamp.opengl.test.junit.jogl.demos.gl4.TrianglesInstancedRendererHardcoded, com.jogamp.opengl.test.junit.jogl.demos.GLClearOnInitReshape, com.jogamp.opengl.test.junit.jogl.demos.GLFinishOnDisplay, com.jogamp.opengl.test.junit.jogl.glu.TestBug463ScaleImageMemoryAWT, com.jogamp.opengl.test.junit.jogl.glu.TestBug694ScaleImageUnpackBufferSizeAWT, com.jogamp.opengl.test.junit.jogl.offscreen.ReadBuffer2Screen, com.jogamp.opengl.test.junit.jogl.offscreen.ReadBufferBase, com.jogamp.opengl.test.junit.jogl.util.DemoGL2ES1TextureImmModeSink, com.jogamp.opengl.test.junit.util.DumpGLInfo, com.jogamp.opengl.test.junit.util.GLClearColor, com.jogamp.opengl.test.junit.util.GLEventListenerCounter, com.jogamp.opengl.test.junit.util.UITestCase.SnapshotGLEventListener, com.jogamp.opengl.test.junit.util.ValidateLockListener, com.jogamp.opengl.demos.es2.PointsDemoES2, com.jogamp.opengl.demos.es2.RedSquareES2, com.jogamp.opengl.test.junit.jogl.demos.es1.PointsDemoES1, com.jogamp.opengl.test.junit.jogl.demos.es2.LineSquareXDemoES2, com.jogamp.opengl.test.junit.jogl.demos.es2.MultisampleDemoES2, com.jogamp.opengl.test.junit.jogl.demos.es2.PointsDemoES2, com.jogamp.opengl.test.junit.jogl.demos.es2.RedSquareES2, com.jogamp.opengl.test.junit.jogl.demos.es2.RedSquareMappedES2, com.jogamp.opengl.test.junit.jogl.demos.es2.TextureDraw01ES2Listener, com.jogamp.opengl.test.junit.jogl.util.DemoGL2ES2ImmModeSink, com.jogamp.opengl.test.junit.jogl.demos.es2.awt.Bug816AppletGLCanvas01, and com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestBug1431NewtCanvasAWT.JOGLQuadNewt.
| void com.jogamp.opengl.GLEventListener.reshape | ( | GLAutoDrawable | drawable, |
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
Called by the drawable during the first repaint after the component has been resized.
The client can update it's viewport associated data and view volume of the window appropriately.
For efficiency the GL viewport has already been updated via glViewport(x, y, width, height) when this method is called.
| drawable | the triggering GLAutoDrawable |
| x | lower left corner of the viewport rectangle in pixel units |
| y | lower left corner of the viewport rectangle in pixel units |
| width | width of the viewport rectangle in pixel units |
| height | height of the viewport rectangle in pixel units |
Implemented in com.jogamp.opengl.test.bugs.Issue326Test1, com.jogamp.opengl.test.bugs.Issue326Test2, com.jogamp.opengl.test.junit.jogl.demos.gl4.TessellationShader01aGLSL440CoreHardcoded, com.jogamp.opengl.test.junit.jogl.demos.gl4.TessellationShader01bGL4, com.jogamp.opengl.test.junit.util.GLEventListenerCounter, com.jogamp.opengl.demos.av.MovieCube, com.jogamp.opengl.demos.av.MovieSBSStereo, com.jogamp.opengl.demos.av.MovieSimple, com.jogamp.opengl.demos.es2.LandscapeES2, com.jogamp.opengl.demos.es2.TextureSequenceCubeES2, com.jogamp.opengl.demos.es2.TextureSequenceES2, com.jogamp.opengl.demos.graph.TextRendererGLELBase, com.jogamp.opengl.demos.graph.ui.UIGraphDemoU01a.MyRenderer, com.jogamp.opengl.demos.graph.ui.UISceneDemo20, com.jogamp.graph.ui.Scene, com.jogamp.opengl.GLEventAdapter, com.jogamp.opengl.util.stereo.StereoClientRenderer, com.jogamp.newt.util.applet.JOGLNewtAppletBase, com.jogamp.opengl.test.bugs.Issue344Base, com.jogamp.opengl.test.junit.graph.FontViewListener01, com.jogamp.opengl.test.junit.graph.TextRendererGLELBase, com.jogamp.opengl.test.junit.jogl.acore.GLReadBuffer00BaseAWT.SnapshotGLELAWT, com.jogamp.opengl.test.junit.jogl.acore.TestGLContextSurfaceLockNEWT.MyEventCounter, com.jogamp.opengl.test.junit.jogl.awt.TestBug461FBOSupersamplingSwingAWT, com.jogamp.opengl.test.junit.jogl.awt.TestBug461PBufferSupersamplingSwingAWT, com.jogamp.opengl.test.junit.jogl.awt.text.TextRendererGLEventListener01, com.jogamp.opengl.test.junit.jogl.demos.es1.GearsES1, com.jogamp.opengl.test.junit.jogl.demos.es1.MultisampleDemoES1, com.jogamp.opengl.test.junit.jogl.demos.es2.ElektronenMultiplizierer, com.jogamp.opengl.test.junit.jogl.demos.es2.FBOMix2DemosES2, com.jogamp.opengl.test.junit.jogl.demos.es2.LandscapeES2, com.jogamp.opengl.test.junit.jogl.demos.es2.Mix2TexturesES2, com.jogamp.opengl.test.junit.jogl.demos.es2.TextureDraw01ES2Listener, com.jogamp.opengl.test.junit.jogl.demos.es2.TextureDraw02ES2ListenerFBO, com.jogamp.opengl.test.junit.jogl.demos.es2.TextureSequenceCubeES2, com.jogamp.opengl.test.junit.jogl.demos.gl2.TextureDraw01GL2Listener, com.jogamp.opengl.test.junit.jogl.demos.gl3.GeomShader01TextureGL3, com.jogamp.opengl.test.junit.jogl.demos.gl4.TriangleInstancedRendererWithShaderState, com.jogamp.opengl.test.junit.jogl.demos.gl4.TrianglesInstancedRendererHardcoded, com.jogamp.opengl.test.junit.jogl.demos.GLClearOnInitReshape, com.jogamp.opengl.test.junit.jogl.demos.GLFinishOnDisplay, com.jogamp.opengl.test.junit.jogl.glu.TestBug463ScaleImageMemoryAWT, com.jogamp.opengl.test.junit.jogl.glu.TestBug694ScaleImageUnpackBufferSizeAWT, com.jogamp.opengl.test.junit.jogl.offscreen.ReadBuffer2Screen, com.jogamp.opengl.test.junit.jogl.offscreen.ReadBufferBase, com.jogamp.opengl.test.junit.jogl.util.DemoGL2ES1TextureImmModeSink, com.jogamp.opengl.test.junit.util.DumpGLInfo, com.jogamp.opengl.test.junit.util.GLClearColor, com.jogamp.opengl.test.junit.util.UITestCase.SnapshotGLEventListener, com.jogamp.opengl.test.junit.util.ValidateLockListener, com.jogamp.opengl.demos.graph.GPURendererListenerBase01, com.jogamp.opengl.demos.graph.GPUTextRendererListenerBase01, com.jogamp.opengl.demos.graph.ui.UIShapeClippingDemo00, com.jogamp.opengl.demos.graph.ui.UIShapeDemo01, com.jogamp.opengl.demos.graph.ui.UITypeDemo01, com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01, com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01, com.jogamp.opengl.test.junit.jogl.demos.es2.awt.Bug816AppletGLCanvas01, com.jogamp.opengl.demos.es2.GearsES2, com.jogamp.opengl.demos.es2.PointsDemoES2, com.jogamp.opengl.demos.es2.RedSquareES2, com.jogamp.opengl.test.junit.jogl.demos.es1.OlympicES1, com.jogamp.opengl.test.junit.jogl.demos.es1.PointsDemoES1, com.jogamp.opengl.test.junit.jogl.demos.es1.RedSquareES1, com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2, com.jogamp.opengl.test.junit.jogl.demos.es2.LineSquareXDemoES2, com.jogamp.opengl.test.junit.jogl.demos.es2.MultisampleDemoES2, com.jogamp.opengl.test.junit.jogl.demos.es2.PointsDemoES2, com.jogamp.opengl.test.junit.jogl.demos.es2.RedSquareES2, com.jogamp.opengl.test.junit.jogl.demos.es2.RedSquareMappedES2, com.jogamp.opengl.test.junit.jogl.demos.gl2.Gears, com.jogamp.opengl.test.junit.jogl.util.DemoGL2ES2ImmModeSink, com.jogamp.opengl.test.bugs.Bug427GLJPanelTest1, com.jogamp.opengl.test.junit.jogl.demos.gl2.Teapot, and com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestBug1431NewtCanvasAWT.JOGLQuadNewt.