|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Extended GLEventListener and CustomGLEventListener interface supporting stereoscopic client rendering.
More...
Public Member Functions | |
| void | reshapeForEye (final GLAutoDrawable drawable, final int x, final int y, final int width, final int height, final EyeParameter eyeParam, final ViewerPose viewerPose) |
Stereo capable specialization of reshape(GLAutoDrawable, int, int, int, int) for one StereoDeviceRenderer.Eye. More... | |
Public Member Functions inherited from com.jogamp.opengl.util.CustomGLEventListener | |
| void | display (final GLAutoDrawable drawable, final int flags) |
Extended display method, allowing to pass a display flag, e.g. More... | |
Public Member Functions inherited from com.jogamp.opengl.GLEventListener | |
| 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... | |
Additional Inherited Members | |
Static Public Attributes inherited from com.jogamp.opengl.util.CustomGLEventListener | |
| static final int | DISPLAY_REPEAT = 1 << 0 |
display flag: Repeat last produced image. More... | |
| static final int | DISPLAY_DONTCLEAR = 1 << 1 |
display flag: Do not clear any target buffer, e.g. More... | |
Extended GLEventListener and CustomGLEventListener interface supporting stereoscopic client rendering.
Definition at line 39 of file StereoGLEventListener.java.
| void com.jogamp.opengl.util.stereo.StereoGLEventListener.reshapeForEye | ( | final GLAutoDrawable | drawable, |
| final int | x, | ||
| final int | y, | ||
| final int | width, | ||
| final int | height, | ||
| final EyeParameter | eyeParam, | ||
| final ViewerPose | viewerPose | ||
| ) |
Stereo capable specialization of reshape(GLAutoDrawable, int, int, int, int) for one StereoDeviceRenderer.Eye.
Called by the stereo renderer before each display(GLAutoDrawable) or display(GLAutoDrawable, int) call.
The client can update it's viewport associated data and view volume of the window appropriately.
The client shall also update it's projection- and modelview matrices according to the given EyeParameter and ViewerPose.
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 | viewport x-coord in pixel units |
| y | viewport y-coord in pixel units |
| width | viewport width in pixel units |
| height | viewport height in pixel units |
| eyeParam | constant eye parameter, i.e. FOV and IPD |
| viewerPose | current viewer position and orientation |
Implemented in com.jogamp.opengl.demos.av.MovieSBSStereo, com.jogamp.opengl.demos.es2.GearsES2, and com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2.