Package com.jme3.renderer
Class RenderContext
java.lang.Object
com.jme3.renderer.RenderContext
Represents the current state of the graphics library. This class is used
internally to reduce state changes. NOTE: This class is specific to OpenGL.
-
Field Summary
Modifier and TypeFieldDescriptionAlpha test function.final IDList
IDList for vertex attributes.Action taken when the stencil test passes but the depth test fails on a back-facing polygon.Action taken when both tests pass on a back-facing polygon.Stencil test function for back-facing polygons.Action taken when the stencil test fails on a back-facing polygon.RGB blend equation for BlendMode.Custom.Alpha blend equation for BlendMode.Custom.How to blend input pixels with those already in the color buffer.int
Currently bound array vertex buffer.final WeakReference<VertexBuffer>[]
Vertex attribs currently bound and enabled.final WeakReference<BufferObject>[]
Current bound buffer object IDs for each buffer object unit.int
Currently bound element array vertex buffer.Currently bound FrameBuffer.int
ID of the bound FrameBuffer.int
Currently bound pixel pack pixel buffer.int
Currently bound Renderbuffer.Shader for rendering.int
ID of the shader for rendering.final WeakReference<Image>[]
Current bound texture IDs for each texture unit.int
Currently bound texture unit.int
ID of the bound vertex array.Color applied when a color buffer is cleared.boolean
Enables the clipping rectangle.boolean
Enables color writing.Criteria for culling faces.Depth test function.boolean
Enables depth testing for color pixels.boolean
Enables depth writing.Alpha destination blend factor for BlendMode.Custom.RGB destination blend factor for BlendMode.Custom.Action taken when the stencil test passes but the depth test fails on a front-facing polygon.Action taken when both tests pass on a front-facing polygon.Stencil test function for front-facing polygons.Action taken when the stencil test fails on a front-facing polygon.int
ID of the initial draw buffer.int
ID of the initial read buffer.float
Line width for meshes.static final int
Number of buffer object units that JME supports.static final int
Number of texture units that JME supports.int
No longer used.float
No longer used.boolean
Enables z-order offset for polygons.float
Maximum Z slope for z-order offset.float
Minimum resolvable depth buffer value for z-order offset.Alpha source blend factor for BlendMode.Custom.RGB source blend factor for BlendMode.Custom.boolean
Stencil Buffer state.final IDList
IDList for texture units.boolean
Enables wireframe rendering of triangle meshes. -
Constructor Summary
-
Method Summary
-
Field Details
-
maxTextureUnits
public static final int maxTextureUnitsNumber of texture units that JME supports.- See Also:
-
maxBufferObjectUnits
public static final int maxBufferObjectUnitsNumber of buffer object units that JME supports.- See Also:
-
cullMode
Criteria for culling faces. -
depthTestEnabled
public boolean depthTestEnabledEnables depth testing for color pixels.- See Also:
-
depthWriteEnabled
public boolean depthWriteEnabledEnables depth writing.- See Also:
-
colorWriteEnabled
public boolean colorWriteEnabledEnables color writing.- See Also:
-
clipRectEnabled
public boolean clipRectEnabledEnables the clipping rectangle.- See Also:
-
polyOffsetEnabled
public boolean polyOffsetEnabledEnables z-order offset for polygons.- See Also:
-
polyOffsetFactor
public float polyOffsetFactorMaximum Z slope for z-order offset.- See Also:
-
polyOffsetUnits
public float polyOffsetUnitsMinimum resolvable depth buffer value for z-order offset.- See Also:
-
pointSize
public float pointSizeNo longer used. -
lineWidth
public float lineWidthLine width for meshes.- See Also:
-
blendMode
How to blend input pixels with those already in the color buffer. -
blendEquation
RGB blend equation for BlendMode.Custom. -
blendEquationAlpha
Alpha blend equation for BlendMode.Custom. -
sfactorRGB
RGB source blend factor for BlendMode.Custom. -
dfactorRGB
RGB destination blend factor for BlendMode.Custom. -
sfactorAlpha
Alpha source blend factor for BlendMode.Custom. -
dfactorAlpha
Alpha destination blend factor for BlendMode.Custom. -
wireframe
public boolean wireframeEnables wireframe rendering of triangle meshes.- See Also:
-
boundShaderProgram
public int boundShaderProgramID of the shader for rendering. -
boundShader
Shader for rendering. -
boundFBO
public int boundFBOID of the bound FrameBuffer. -
boundFB
Currently bound FrameBuffer. -
boundRB
public int boundRBCurrently bound Renderbuffer. -
boundElementArrayVBO
public int boundElementArrayVBOCurrently bound element array vertex buffer. -
boundVertexArray
public int boundVertexArrayID of the bound vertex array. -
boundArrayVBO
public int boundArrayVBOCurrently bound array vertex buffer. -
boundPixelPackPBO
public int boundPixelPackPBOCurrently bound pixel pack pixel buffer. -
numTexturesSet
public int numTexturesSetNo longer used. -
boundTextures
Current bound texture IDs for each texture unit. -
boundBO
Current bound buffer object IDs for each buffer object unit. -
textureIndexList
IDList for texture units. -
boundTextureUnit
public int boundTextureUnitCurrently bound texture unit. -
stencilTest
public boolean stencilTestStencil Buffer state. -
frontStencilStencilFailOperation
Action taken when the stencil test fails on a front-facing polygon. -
frontStencilDepthFailOperation
Action taken when the stencil test passes but the depth test fails on a front-facing polygon. -
frontStencilDepthPassOperation
Action taken when both tests pass on a front-facing polygon. -
backStencilStencilFailOperation
Action taken when the stencil test fails on a back-facing polygon. -
backStencilDepthFailOperation
Action taken when the stencil test passes but the depth test fails on a back-facing polygon. -
backStencilDepthPassOperation
Action taken when both tests pass on a back-facing polygon. -
frontStencilFunction
Stencil test function for front-facing polygons. -
backStencilFunction
Stencil test function for back-facing polygons. -
boundAttribs
Vertex attribs currently bound and enabled. If a slot is null, then it is disabled. -
attribIndexList
IDList for vertex attributes. -
depthFunc
Depth test function. -
alphaFunc
Alpha test function. -
initialDrawBuf
public int initialDrawBufID of the initial draw buffer. -
initialReadBuf
public int initialReadBufID of the initial read buffer. -
clearColor
Color applied when a color buffer is cleared.
-
-
Constructor Details
-
RenderContext
public RenderContext()Instantiates a context with appropriate default values.
-
-
Method Details
-
reset
public void reset()Resets the RenderContext to default GL state.
-