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,
ViewerPose viewerPose)
Stereo capable specialization of
GLEventListener.reshape(GLAutoDrawable, int, int, int, int)
for one StereoDeviceRenderer.Eye . |
display
display, dispose, init, reshape
void reshapeForEye(GLAutoDrawable drawable, int x, int y, int width, int height, EyeParameter eyeParam, ViewerPose viewerPose)
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 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 unitsy
- viewport y-coord in pixel unitswidth
- viewport width in pixel unitsheight
- viewport height in pixel unitseyeParam
- constant eye parameter, i.e. FOV and IPDviewerPose
- current viewer position and orientationFloatUtil#makePerspective(float[], int, boolean, com.jogamp.opengl.math.FloatUtil.FovHVHalves, float, float)
Copyright 2010 JogAmp Community.