public interface StereoGLEventListener extends CustomGLEventListener
GLEventListener and CustomGLEventListener interface
supporting stereoscopic client rendering.DISPLAY_DONTCLEAR, DISPLAY_REPEAT| Modifier and Type | Method and Description |
|---|---|
void |
reshapeForEye(GLAutoDrawable drawable,
int x,
int y,
int width,
int height,
EyeParameter eyeParam,
EyePose eyePose)
Stereo capable specialization of
GLEventListener.reshape(GLAutoDrawable, int, int, int, int)
for one StereoDeviceRenderer.Eye. |
displaydisplay, dispose, init, reshapevoid reshapeForEye(GLAutoDrawable drawable, int x, int y, int width, int height, EyeParameter eyeParam, EyePose eyePose)
GLEventListener.reshape(GLAutoDrawable, int, int, int, int)
for one StereoDeviceRenderer.Eye.
Called by the stereo renderer before each GLEventListener.display(GLAutoDrawable)
or CustomGLEventListener.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 EyePose.
For efficiency the GL viewport has already been updated
via glViewport(x, y, width, height) when this method is called.
drawable - the triggering GLAutoDrawablex - viewport x-coord in pixel unitsy - viewport y-coord in pixel unitswidth - viewport width in pixel unitsheight - viewport height in pixel unitseyeParam - constant eye parameter, i.e. FOV and IPDeyePose - current eye position and orientationFloatUtil#makePerspective(float[], int, boolean, com.jogamp.opengl.math.FloatUtil.FovHVHalves, float, float)Copyright 2010 JogAmp Community.