Class OGLInitNode
java.lang.Object
com.blackrook.gloop.opengl.node.OGLTriggeredNode<OGL11Graphics>
com.blackrook.gloop.opengl.node.OGLInitNode
- All Implemented Interfaces:
OGLNode<OGL11Graphics>
A one-time triggered node that performs usually one-time
OpenGL setup commands, like clear color, VSYNC, hints, or whatever.
If you change anything on this node before it is triggered, you will have to set it to be triggered again in order to take effect.
- Author:
- Matthew Tropiano
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis is the method called byOGLTriggeredNode.onDisplay(OGLGraphics)for when the triggered method needs to run.voidsetAllHintsTo(HintValue hint) Sets all hint options to a single value.voidsetFillMode(FillMode fillMode) Sets the global filling mode.voidsetFogCalculationHint(HintValue value) Set fog calculation hint.voidsetGenerateMipmapHint(HintValue value) Set mipmap generation hint.voidsetLineSmoothHint(HintValue value) Set line smooth hint value.voidSet prespective correction hint.voidsetPointSmoothHint(HintValue value) Set point smooth hint value.voidsetPolygonSmoothHint(HintValue value) Set polygon smooth hint value.voidSet texture compression hint.Methods inherited from class OGLTriggeredNode
onDisplay, setTriggerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface OGLNode
getPolygonsRendered, getRenderTimeNanos, onFramebufferResize
-
Constructor Details
-
OGLInitNode
public OGLInitNode()Creates a new init node.
By default:VSYNC is disabled.
All hints are set toHintValue.DONT_CARE;
The clear color is (0,0,0,0), RGBA.
The fill mode is FILLED.
-
-
Method Details
-
doTriggeredDisplay
Description copied from class:OGLTriggeredNodeThis is the method called byOGLTriggeredNode.onDisplay(OGLGraphics)for when the triggered method needs to run.- Specified by:
doTriggeredDisplayin classOGLTriggeredNode<OGL11Graphics>- Parameters:
gl- the OGLGraphics context.
-
getPointSmoothHint
- Returns:
- the current point smooth hint value.
-
getLineSmoothHint
- Returns:
- the current line smooth hint value.
-
getPolygonSmoothHint
- Returns:
- the current polygon smooth hint value.
-
getFogCalculationHint
- Returns:
- the current fog color calculation hint.
-
getGenerateMipmapHint
- Returns:
- the current mipmap generation hint.
-
getPerspectiveCorrectionHint
- Returns:
- the current perspective correction hint.
-
getTextureCompressionHint
- Returns:
- the current texture compression hint.
-
setPointSmoothHint
Set point smooth hint value.- Parameters:
value- the hint value.
-
setLineSmoothHint
Set line smooth hint value.- Parameters:
value- the hint value.
-
setPolygonSmoothHint
Set polygon smooth hint value.- Parameters:
value- the hint value.
-
setFogCalculationHint
Set fog calculation hint.- Parameters:
value- the hint value.
-
setGenerateMipmapHint
Set mipmap generation hint.- Parameters:
value- the hint value.
-
setPerspectiveCorrectionHint
Set prespective correction hint.- Parameters:
value- the hint value.
-
setTextureCompressionHint
Set texture compression hint.- Parameters:
value- the hint value.
-
setAllHintsTo
Sets all hint options to a single value.- Parameters:
hint- the value to set to.
-
setFillMode
Sets the global filling mode.- Parameters:
fillMode- the fill mode to use.
-
getFillMode
- Returns:
- the current the global filling mode.
-