Package com.jogamp.graph.ui
Interface Scene.PMVMatrixSetup
-
- Enclosing class:
- Scene
public static interface Scene.PMVMatrixSetupInterface providinga methodto setupPMVMatrix'sGLMatrixFunc.GL_PROJECTIONandGLMatrixFunc.GL_MODELVIEW.At the end of operations, the
GLMatrixFunc.GL_MODELVIEWmatrix has to be selected.Implementation is being called by
Scene#setupMatrix(PMVMatrix, int, int, int, int)and henceScene.reshape(GLAutoDrawable, int, int, int, int).Custom implementations can be set via
Scene.setPMVMatrixSetup(PMVMatrixSetup).The default implementation is described below:
GLMatrixFunc.GL_PROJECTIONMatrix- Identity
- Perspective
Scene.DEFAULT_ANGLEwithScene.DEFAULT_ZNEARandScene.DEFAULT_ZFAR - Translated to given
Scene.DEFAULT_SCENE_DIST - Scale (back) to have normalized
plane dimensions, 1 for the greater of width and height.
GLMatrixFunc.GL_MODELVIEWMatrix- identity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidset(PMVMatrix pmv, Recti viewport)voidsetPlaneBox(AABBox planeBox, PMVMatrix pmv, Recti viewport)
-
-
-
Method Detail
-
set
void set(PMVMatrix pmv, Recti viewport)
SetupPMVMatrix'sGLMatrixFunc.GL_PROJECTIONandGLMatrixFunc.GL_MODELVIEW.See
Scene.PMVMatrixSetupfor details.At the end of operations, the
GLMatrixFunc.GL_MODELVIEWmatrix is selected.- Parameters:
pmv- thePMVMatrixto setupviewport- Rect4i viewport
-
setPlaneBox
void setPlaneBox(AABBox planeBox, PMVMatrix pmv, Recti viewport)
Optional method to set theScene.getBounds()AABBox, maybe anopif not desired.Will be called by
Scene.reshape(GLAutoDrawable, int, int, int, int)afterset(PMVMatrix, Recti).- Parameters:
planeBox- theAABBoxto definepmv- thePMVMatrix, already setup viaset(PMVMatrix, Recti).viewport- Rect4i viewport
-
-