Class AbstractRenderPass
java.lang.Object
com.marginallyclever.ro3.apps.viewport.renderpasses.AbstractRenderPass
- All Implemented Interfaces:
com.jogamp.opengl.GLEventListener
,RenderPass
,EventListener
- Direct Known Subclasses:
DrawBackground
,DrawBoundingBoxes
,DrawCameras
,DrawDHParameters
,DrawGroundPlane
,DrawHingeJoints
,DrawMeshes
,DrawPoses
AbstractRenderPass
handles common methods for all RenderPass
.-
Field Summary
Fields inherited from interface com.marginallyclever.ro3.apps.viewport.RenderPass
ALWAYS, MAX_STATUS, NEVER, SOMETIMES
-
Method Summary
Modifier and TypeMethodDescriptionvoid
display
(com.jogamp.opengl.GLAutoDrawable glAutoDrawable) void
dispose
(com.jogamp.opengl.GLAutoDrawable glAutoDrawable) void
Draw this viewport pass.int
getName()
void
init
(com.jogamp.opengl.GLAutoDrawable glAutoDrawable) void
reshape
(com.jogamp.opengl.GLAutoDrawable glAutoDrawable, int x, int y, int width, int height) void
setActiveStatus
(int status) void
-
Method Details
-
setName
-
getName
- Specified by:
getName
in interfaceRenderPass
- Returns:
- the localized name of this pass.
-
getActiveStatus
public int getActiveStatus()- Specified by:
getActiveStatus
in interfaceRenderPass
- Returns:
- NEVER, SOMETIMES, or ALWAYS
-
setActiveStatus
public void setActiveStatus(int status) - Specified by:
setActiveStatus
in interfaceRenderPass
- Parameters:
status
- NEVER, SOMETIMES, or ALWAYS
-
draw
Description copied from interface:RenderPass
Draw this viewport pass.- Specified by:
draw
in interfaceRenderPass
- Parameters:
viewport
- the viewport to draw into
-
init
public void init(com.jogamp.opengl.GLAutoDrawable glAutoDrawable) - Specified by:
init
in interfacecom.jogamp.opengl.GLEventListener
-
dispose
public void dispose(com.jogamp.opengl.GLAutoDrawable glAutoDrawable) - Specified by:
dispose
in interfacecom.jogamp.opengl.GLEventListener
-
display
public void display(com.jogamp.opengl.GLAutoDrawable glAutoDrawable) - Specified by:
display
in interfacecom.jogamp.opengl.GLEventListener
-
reshape
public void reshape(com.jogamp.opengl.GLAutoDrawable glAutoDrawable, int x, int y, int width, int height) - Specified by:
reshape
in interfacecom.jogamp.opengl.GLEventListener
-