JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.util.stereo.StereoGLEventListener Interface Reference

Extended GLEventListener and CustomGLEventListener interface supporting stereoscopic client rendering. More...

Inheritance diagram for com.jogamp.opengl.util.stereo.StereoGLEventListener:
Collaboration diagram for com.jogamp.opengl.util.stereo.StereoGLEventListener:

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...
 

Detailed Description

Extended GLEventListener and CustomGLEventListener interface supporting stereoscopic client rendering.

Definition at line 39 of file StereoGLEventListener.java.

Member Function Documentation

◆ reshapeForEye()

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.

Parameters
drawablethe triggering GLAutoDrawable
xviewport x-coord in pixel units
yviewport y-coord in pixel units
widthviewport width in pixel units
heightviewport height in pixel units
eyeParamconstant eye parameter, i.e. FOV and IPD
viewerPosecurrent viewer position and orientation
See also
FloatUtil::makePerspective(float[], int, boolean, com.jogamp.math.FloatUtil.FovHVHalves, float, float)

Implemented in com.jogamp.opengl.demos.av.MovieSBSStereo, com.jogamp.opengl.demos.es2.GearsES2, and com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2.

Here is the caller graph for this function:

The documentation for this interface was generated from the following file: