public class RenderContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
RenderState.TestFunction |
alphaFunc
Alpha test function.
|
IDList |
attribIndexList
IDList for vertex attributes.
|
RenderState.StencilOperation |
backStencilDepthFailOperation
Action taken when the stencil test passes but the depth test fails on a back-facing polygon.
|
RenderState.StencilOperation |
backStencilDepthPassOperation
Action taken when both tests pass on a back-facing polygon.
|
RenderState.TestFunction |
backStencilFunction
Stencil test function for back-facing polygons.
|
RenderState.StencilOperation |
backStencilStencilFailOperation
Action taken when the stencil test fails on a back-facing polygon.
|
RenderState.BlendEquation |
blendEquation
RGB blend equation for BlendMode.Custom.
|
RenderState.BlendEquationAlpha |
blendEquationAlpha
Alpha blend equation for BlendMode.Custom.
|
RenderState.BlendMode |
blendMode
How to blend input pixels with those already in the color buffer.
|
int |
boundArrayVBO
Currently bound array vertex buffer.
|
java.lang.ref.WeakReference<VertexBuffer>[] |
boundAttribs
Vertex attribs currently bound and enabled.
|
int |
boundDrawBuf
Currently bound draw buffer.
|
int |
boundElementArrayVBO
Currently bound element array vertex buffer.
|
FrameBuffer |
boundFB
Currently bound FrameBuffer.
|
int |
boundFBO
ID of the bound FrameBuffer.
|
int |
boundPixelPackPBO
Currently bound pixel pack pixel buffer.
|
int |
boundRB
Currently bound Renderbuffer.
|
int |
boundReadBuf
Currently bound read buffer.
|
Shader |
boundShader
Shader for rendering.
|
int |
boundShaderProgram
ID of the shader for rendering.
|
java.lang.ref.WeakReference<Image>[] |
boundTextures
Current bound texture IDs for each texture unit.
|
int |
boundTextureUnit
Currently bound texture unit.
|
int |
boundVertexArray
ID of the bound vertex array.
|
ColorRGBA |
clearColor
Color applied when a color buffer is cleared.
|
boolean |
clipRectEnabled
Enables the clipping rectangle.
|
boolean |
colorWriteEnabled
Enables color writing.
|
RenderState.FaceCullMode |
cullMode
Criteria for culling faces.
|
RenderState.TestFunction |
depthFunc
Depth test function.
|
boolean |
depthTestEnabled
Enables depth testing for color pixels.
|
boolean |
depthWriteEnabled
Enables depth writing.
|
RenderState.BlendFunc |
dfactorAlpha
Alpha destination blend factor for BlendMode.Custom.
|
RenderState.BlendFunc |
dfactorRGB
RGB destination blend factor for BlendMode.Custom.
|
RenderState.StencilOperation |
frontStencilDepthFailOperation
Action taken when the stencil test passes but the depth test fails on a front-facing polygon.
|
RenderState.StencilOperation |
frontStencilDepthPassOperation
Action taken when both tests pass on a front-facing polygon.
|
RenderState.TestFunction |
frontStencilFunction
Stencil test function for front-facing polygons.
|
RenderState.StencilOperation |
frontStencilStencilFailOperation
Action taken when the stencil test fails on a front-facing polygon.
|
int |
initialDrawBuf
ID of the initial draw buffer.
|
int |
initialReadBuf
ID of the initial read buffer.
|
float |
lineWidth
Line width for meshes.
|
static int |
maxTextureUnits
Number of texture units that JME supports.
|
int |
numTexturesSet
No longer used.
|
float |
pointSize
No longer used.
|
boolean |
polyOffsetEnabled
Enables z-order offset for polygons.
|
float |
polyOffsetFactor
Maximum Z slope for z-order offset.
|
float |
polyOffsetUnits
Minimum resolvable depth buffer value for z-order offset.
|
RenderState.BlendFunc |
sfactorAlpha
Alpha source blend factor for BlendMode.Custom.
|
RenderState.BlendFunc |
sfactorRGB
RGB source blend factor for BlendMode.Custom.
|
boolean |
stencilTest
Stencil Buffer state.
|
IDList |
textureIndexList
IDList for texture units.
|
boolean |
wireframe
Enables wireframe rendering of triangle meshes.
|
Constructor and Description |
---|
RenderContext()
Instantiates a context with appropriate default values.
|
Modifier and Type | Method and Description |
---|---|
void |
reset()
Resets the RenderContext to default GL state.
|
public static final int maxTextureUnits
public RenderState.FaceCullMode cullMode
public boolean depthTestEnabled
RenderState.setDepthTest(boolean)
public boolean depthWriteEnabled
RenderState.setDepthWrite(boolean)
public boolean colorWriteEnabled
RenderState.setColorWrite(boolean)
public boolean clipRectEnabled
Renderer.setClipRect(int, int, int, int)
public boolean polyOffsetEnabled
RenderState.setPolyOffset(float, float)
public float polyOffsetFactor
RenderState.setPolyOffset(float, float)
public float polyOffsetUnits
RenderState.setPolyOffset(float, float)
public float pointSize
public float lineWidth
RenderState.setLineWidth(float)
public RenderState.BlendMode blendMode
public RenderState.BlendEquation blendEquation
public RenderState.BlendEquationAlpha blendEquationAlpha
public RenderState.BlendFunc sfactorRGB
public RenderState.BlendFunc dfactorRGB
public RenderState.BlendFunc sfactorAlpha
public RenderState.BlendFunc dfactorAlpha
public boolean wireframe
RenderState.setWireframe(boolean)
public int boundShaderProgram
public Shader boundShader
public int boundFBO
public FrameBuffer boundFB
public int boundRB
public int boundDrawBuf
public int boundReadBuf
public int boundElementArrayVBO
public int boundVertexArray
public int boundArrayVBO
public int boundPixelPackPBO
public int numTexturesSet
public final java.lang.ref.WeakReference<Image>[] boundTextures
public final IDList textureIndexList
public int boundTextureUnit
public boolean stencilTest
public RenderState.StencilOperation frontStencilStencilFailOperation
public RenderState.StencilOperation frontStencilDepthFailOperation
public RenderState.StencilOperation frontStencilDepthPassOperation
public RenderState.StencilOperation backStencilStencilFailOperation
public RenderState.StencilOperation backStencilDepthFailOperation
public RenderState.StencilOperation backStencilDepthPassOperation
public RenderState.TestFunction frontStencilFunction
public RenderState.TestFunction backStencilFunction
public final java.lang.ref.WeakReference<VertexBuffer>[] boundAttribs
public final IDList attribIndexList
public RenderState.TestFunction depthFunc
public RenderState.TestFunction alphaFunc
public int initialDrawBuf
public int initialReadBuf
public ColorRGBA clearColor