com.jme3.renderer
クラス RenderContext

java.lang.Object
  上位を拡張 com.jme3.renderer.RenderContext

public class RenderContext
extends java.lang.Object

Represents the current state of the graphics library. This class is used internally to reduce state changes. NOTE: This class is specific to OpenGL.


フィールドの概要
 boolean alphaTestEnabled
           
 IDList attribIndexList
          IDList for vertex attributes
 RenderState.StencilOperation backStencilDepthFailOperation
           
 RenderState.StencilOperation backStencilDepthPassOperation
           
 RenderState.TestFunction backStencilFunction
           
 RenderState.StencilOperation backStencilStencilFailOperation
           
 RenderState.BlendMode blendMode
           
 int boundArrayVBO
          Currently bound array vertex buffer.
 VertexBuffer[] boundAttribs
          Vertex attribs currently bound and enabled.
 int boundDrawBuf
          Currently bound draw buffer -2 = GL_NONE -1 = GL_BACK 0 = GL_COLOR_ATTACHMENT0 n = GL_COLOR_ATTACHMENTn where n is an integer greater than 1
 int boundElementArrayVBO
          Currently bound element array vertex buffer.
 int boundFBO
           
 int boundRB
          Currently bound Renderbuffer
 int boundReadBuf
          Currently bound read buffer
 int boundShaderProgram
           
 Image[] boundTextures
          Current bound texture IDs for each texture unit.
 int boundTextureUnit
          Currently bound texture unit
 int boundVertexArray
           
 boolean clipRectEnabled
           
 boolean colorWriteEnabled
           
 RenderState.FaceCullMode cullMode
           
 boolean depthTestEnabled
           
 boolean depthWriteEnabled
           
 RenderState.StencilOperation frontStencilDepthFailOperation
           
 RenderState.StencilOperation frontStencilDepthPassOperation
           
 RenderState.TestFunction frontStencilFunction
           
 RenderState.StencilOperation frontStencilStencilFailOperation
           
 float lineWidth
           
 int matrixMode
          For glMatrixMode.
 boolean normalizeEnabled
          For normals only.
 int numTexturesSet
           
 float pointSize
           
 boolean pointSprite
           
 boolean polyOffsetEnabled
           
 float polyOffsetFactor
           
 float polyOffsetUnits
           
 boolean stencilTest
          Stencil Buffer state
 IDList textureIndexList
          IDList for texture units
 boolean wireframe
           
 
コンストラクタの概要
RenderContext()
           
 
メソッドの概要
 void reset()
          Reset the RenderContext to default GL state
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

cullMode

public RenderState.FaceCullMode cullMode
関連項目:
RenderState.setFaceCullMode(com.jme3.material.RenderState.FaceCullMode)

depthTestEnabled

public boolean depthTestEnabled
関連項目:
RenderState.setDepthTest(boolean)

alphaTestEnabled

public boolean alphaTestEnabled
関連項目:
RenderState.setAlphaTest(boolean)

depthWriteEnabled

public boolean depthWriteEnabled
関連項目:
RenderState.setDepthWrite(boolean)

colorWriteEnabled

public boolean colorWriteEnabled
関連項目:
RenderState.setColorWrite(boolean)

clipRectEnabled

public boolean clipRectEnabled
関連項目:
Renderer.setClipRect(int, int, int, int)

polyOffsetEnabled

public boolean polyOffsetEnabled
関連項目:
RenderState.setPolyOffset(float, float)

polyOffsetFactor

public float polyOffsetFactor
関連項目:
RenderState.setPolyOffset(float, float)

polyOffsetUnits

public float polyOffsetUnits
関連項目:
RenderState.setPolyOffset(float, float)

normalizeEnabled

public boolean normalizeEnabled
For normals only. Uses GL_NORMALIZE.

関連項目:
VertexBuffer.setNormalized(boolean)

matrixMode

public int matrixMode
For glMatrixMode.

関連項目:
Renderer.setWorldMatrix(com.jme3.math.Matrix4f), Renderer.setViewProjectionMatrices(com.jme3.math.Matrix4f, com.jme3.math.Matrix4f)

pointSize

public float pointSize
関連項目:
Mesh.setPointSize(float)

lineWidth

public float lineWidth
関連項目:
Mesh.setLineWidth(float)

blendMode

public RenderState.BlendMode blendMode
関連項目:
RenderState.setBlendMode(com.jme3.material.RenderState.BlendMode)

wireframe

public boolean wireframe
関連項目:
RenderState.setWireframe(boolean)

pointSprite

public boolean pointSprite
関連項目:
RenderState.setPointSprite(boolean)

boundShaderProgram

public int boundShaderProgram
関連項目:
Renderer.setShader(com.jme3.shader.Shader)

boundFBO

public int boundFBO
関連項目:
Renderer.setFrameBuffer(com.jme3.texture.FrameBuffer)

boundRB

public int boundRB
Currently bound Renderbuffer

関連項目:
Renderer.setFrameBuffer(com.jme3.texture.FrameBuffer)

boundDrawBuf

public int boundDrawBuf
Currently bound draw buffer -2 = GL_NONE -1 = GL_BACK 0 = GL_COLOR_ATTACHMENT0 n = GL_COLOR_ATTACHMENTn where n is an integer greater than 1

関連項目:
Renderer.setFrameBuffer(com.jme3.texture.FrameBuffer), FrameBuffer.setTargetIndex(int)

boundReadBuf

public int boundReadBuf
Currently bound read buffer

関連項目:
boundDrawBuf, Renderer.setFrameBuffer(com.jme3.texture.FrameBuffer), FrameBuffer.setTargetIndex(int)

boundElementArrayVBO

public int boundElementArrayVBO
Currently bound element array vertex buffer.

関連項目:
Renderer.renderMesh(com.jme3.scene.Mesh, int, int)

boundVertexArray

public int boundVertexArray
関連項目:
Renderer.renderMesh(com.jme3.scene.Mesh, int, int)

boundArrayVBO

public int boundArrayVBO
Currently bound array vertex buffer.

関連項目:
Renderer.renderMesh(com.jme3.scene.Mesh, int, int)

numTexturesSet

public int numTexturesSet

boundTextures

public Image[] boundTextures
Current bound texture IDs for each texture unit.

関連項目:
Renderer.setTexture(int, com.jme3.texture.Texture)

textureIndexList

public IDList textureIndexList
IDList for texture units

関連項目:
Renderer.setTexture(int, com.jme3.texture.Texture)

boundTextureUnit

public int boundTextureUnit
Currently bound texture unit

関連項目:
Renderer.setTexture(int, com.jme3.texture.Texture)

stencilTest

public boolean stencilTest
Stencil Buffer state


frontStencilStencilFailOperation

public RenderState.StencilOperation frontStencilStencilFailOperation

frontStencilDepthFailOperation

public RenderState.StencilOperation frontStencilDepthFailOperation

frontStencilDepthPassOperation

public RenderState.StencilOperation frontStencilDepthPassOperation

backStencilStencilFailOperation

public RenderState.StencilOperation backStencilStencilFailOperation

backStencilDepthFailOperation

public RenderState.StencilOperation backStencilDepthFailOperation

backStencilDepthPassOperation

public RenderState.StencilOperation backStencilDepthPassOperation

frontStencilFunction

public RenderState.TestFunction frontStencilFunction

backStencilFunction

public RenderState.TestFunction backStencilFunction

boundAttribs

public VertexBuffer[] boundAttribs
Vertex attribs currently bound and enabled. If a slot is null, then it is disabled.


attribIndexList

public IDList attribIndexList
IDList for vertex attributes

コンストラクタの詳細

RenderContext

public RenderContext()
メソッドの詳細

reset

public void reset()
Reset the RenderContext to default GL state