Package com.jogamp.opengl.util.stereo
Interface StereoGLEventListener
- All Superinterfaces:
CustomGLEventListener
,EventListener
,GLEventListener
Extended
GLEventListener
and CustomGLEventListener
interface
supporting stereoscopic client rendering.-
Field Summary
Fields inherited from interface com.jogamp.opengl.util.CustomGLEventListener
DISPLAY_DONTCLEAR, DISPLAY_REPEAT
-
Method Summary
Modifier and TypeMethodDescriptionvoid
reshapeForEye
(GLAutoDrawable drawable, int x, int y, int width, int height, EyeParameter eyeParam, ViewerPose viewerPose) Stereo capable specialization ofGLEventListener.reshape(GLAutoDrawable, int, int, int, int)
for oneStereoDeviceRenderer.Eye
.Methods inherited from interface com.jogamp.opengl.util.CustomGLEventListener
display
Methods inherited from interface com.jogamp.opengl.GLEventListener
display, dispose, init, reshape
-
Method Details
-
reshapeForEye
void reshapeForEye(GLAutoDrawable drawable, int x, int y, int width, int height, EyeParameter eyeParam, ViewerPose viewerPose) Stereo capable specialization ofGLEventListener.reshape(GLAutoDrawable, int, int, int, int)
for oneStereoDeviceRenderer.Eye
.Called by the stereo renderer before each
GLEventListener.display(GLAutoDrawable)
orCustomGLEventListener.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
andViewerPose
.For efficiency the GL viewport has already been updated via
glViewport(x, y, width, height)
when this method is called.- Parameters:
drawable
- the triggeringGLAutoDrawable
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 orientation- See Also:
-