|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
Interface providing a method to setup PMVMatrix4f's GLMatrixFunc#GL_PROJECTION and GLMatrixFunc#GL_MODELVIEW.
More...
Public Member Functions | |
| float | getSceneDist () |
| Returns scene distance on z-axis to projection. More... | |
| float | getAngle () |
Returns fov projection angle in radians, shall be 0 for orthogonal projection. More... | |
| float | getZNear () |
| Returns projection z-near value. More... | |
| float | getZFar () |
| Returns projection z-far value. More... | |
| void | set (PMVMatrix4f pmv, Recti viewport) |
Setup PMVMatrix4f's GLMatrixFunc#GL_PROJECTION and GLMatrixFunc#GL_MODELVIEW. More... | |
| void | setPlaneBox (final AABBox planeBox, final PMVMatrix4f pmv, Recti viewport) |
Optional method to set the Scene#getBounds() AABBox, maybe a nop if not desired. More... | |
Interface providing a method to setup PMVMatrix4f's GLMatrixFunc#GL_PROJECTION and GLMatrixFunc#GL_MODELVIEW.
At the end of operations, the GLMatrixFunc#GL_MODELVIEW matrix has to be selected.
Implementation is being called by Scene#setupMatrix(PMVMatrix4f, int, int, int, int) and hence Scene#reshape(GLAutoDrawable, int, int, int, int).
Custom implementations can be set via Scene#setPMVMatrixSetup(PMVMatrixSetup).
The default implementation is Scene.DefaultPMVMatrixSetup.
Definition at line 706 of file Scene.java.
| float com.jogamp.graph.ui.Scene.PMVMatrixSetup.getAngle | ( | ) |
Returns fov projection angle in radians, shall be 0 for orthogonal projection.
Implemented in com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.
| float com.jogamp.graph.ui.Scene.PMVMatrixSetup.getSceneDist | ( | ) |
Returns scene distance on z-axis to projection.
Implemented in com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.
| float com.jogamp.graph.ui.Scene.PMVMatrixSetup.getZFar | ( | ) |
Returns projection z-far value.
Implemented in com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.
| float com.jogamp.graph.ui.Scene.PMVMatrixSetup.getZNear | ( | ) |
Returns projection z-near value.
Implemented in com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.
| void com.jogamp.graph.ui.Scene.PMVMatrixSetup.set | ( | PMVMatrix4f | pmv, |
| Recti | viewport | ||
| ) |
Setup PMVMatrix4f's GLMatrixFunc#GL_PROJECTION and GLMatrixFunc#GL_MODELVIEW.
See PMVMatrixSetup for details.
At the end of operations, the GLMatrixFunc#GL_MODELVIEW matrix is selected.
| pmv | the PMVMatrix4f to setup |
| viewport | Rect4i viewport |
Implemented in com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.
| void com.jogamp.graph.ui.Scene.PMVMatrixSetup.setPlaneBox | ( | final AABBox | planeBox, |
| final PMVMatrix4f | pmv, | ||
| Recti | viewport | ||
| ) |
Optional method to set the Scene#getBounds() AABBox, maybe a nop if not desired.
Will be called by Scene#reshape(GLAutoDrawable, int, int, int, int) after set(PMVMatrix4f, Recti).
| planeBox | the AABBox to define |
| pmv | the PMVMatrix4f, already setup via set(PMVMatrix4f, Recti). |
| viewport | Rect4i viewport |
Implemented in com.jogamp.graph.ui.Scene.DefaultPMVMatrixSetup.