com.threerings.opengl.renderer
Class Renderer.TextureUnitRecord

java.lang.Object
  extended by com.threerings.opengl.renderer.TextureUnit
      extended by com.threerings.opengl.renderer.Renderer.TextureUnitRecord
Enclosing class:
Renderer

protected static class Renderer.TextureUnitRecord
extends TextureUnit

Represents the current state of a single texture unit.


Field Summary
 Boolean enabled1D
          Whether or not 1D texturing is enabled for this unit.
 Boolean enabled2D
          Whether or not 2D texturing is enabled for this unit.
 Boolean enabled3D
          Whether or not 3D texturing is enabled for this unit.
 Boolean enabledCubeMap
          Whether or not cube map texturing is enabled for this unit.
 Boolean enabledRectangle
          Whether or not rectangular texturing is enabled for this unit.
 Boolean genEnabledQ
          Whether or not texture coordinate generation is enabled for the q coordinate.
 Boolean genEnabledR
          Whether or not texture coordinate generation is enabled for the r coordinate.
 Boolean genEnabledS
          Whether or not texture coordinate generation is enabled for the s coordinate.
 Boolean genEnabledT
          Whether or not texture coordinate generation is enabled for the t coordinate.
 Vector4f genEyePlaneQ
          The q texture coordinate generation eye plane.
 Vector4f genEyePlaneR
          The r texture coordinate generation eye plane.
 Vector4f genEyePlaneS
          The s texture coordinate generation eye plane.
 Vector4f genEyePlaneT
          The t texture coordinate generation eye plane.
 Texture texture1D
          The texture bound to the 1D target.
 Texture texture2D
          The texture bound to the 2D target.
 Texture texture3D
          The texture bound to the 3D target.
 Texture textureCubeMap
          The texture bound to the cube map target.
 Texture textureRectangle
          The texture bound to the rectangular target.
 TextureUnit unit
          A reference to the last unit set.
 
Fields inherited from class com.threerings.opengl.renderer.TextureUnit
alphaCombine, alphaOperand0, alphaOperand1, alphaOperand2, alphaScale, alphaSource0, alphaSource1, alphaSource2, dirty, envColor, envMode, genModeQ, genModeR, genModeS, genModeT, genPlaneQ, genPlaneR, genPlaneS, genPlaneT, lodBias, rgbCombine, rgbOperand0, rgbOperand1, rgbOperand2, rgbScale, rgbSource0, rgbSource1, rgbSource2, texture, transform
 
Constructor Summary
Renderer.TextureUnitRecord()
          Creates a new texture unit record.
 
Method Summary
 void invalidate()
          Invalidates this record, forcing it to be reapplied.
 
Methods inherited from class com.threerings.opengl.renderer.TextureUnit
allGenModesEqual, anyGenModesEqual, setTexture
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enabled1D

public Boolean enabled1D
Whether or not 1D texturing is enabled for this unit.


texture1D

public Texture texture1D
The texture bound to the 1D target.


enabled2D

public Boolean enabled2D
Whether or not 2D texturing is enabled for this unit.


texture2D

public Texture texture2D
The texture bound to the 2D target.


enabledRectangle

public Boolean enabledRectangle
Whether or not rectangular texturing is enabled for this unit.


textureRectangle

public Texture textureRectangle
The texture bound to the rectangular target.


enabled3D

public Boolean enabled3D
Whether or not 3D texturing is enabled for this unit.


texture3D

public Texture texture3D
The texture bound to the 3D target.


enabledCubeMap

public Boolean enabledCubeMap
Whether or not cube map texturing is enabled for this unit.


textureCubeMap

public Texture textureCubeMap
The texture bound to the cube map target.


genEnabledS

public Boolean genEnabledS
Whether or not texture coordinate generation is enabled for the s coordinate.


genEyePlaneS

public Vector4f genEyePlaneS
The s texture coordinate generation eye plane.


genEnabledT

public Boolean genEnabledT
Whether or not texture coordinate generation is enabled for the t coordinate.


genEyePlaneT

public Vector4f genEyePlaneT
The t texture coordinate generation eye plane.


genEnabledR

public Boolean genEnabledR
Whether or not texture coordinate generation is enabled for the r coordinate.


genEyePlaneR

public Vector4f genEyePlaneR
The r texture coordinate generation eye plane.


genEnabledQ

public Boolean genEnabledQ
Whether or not texture coordinate generation is enabled for the q coordinate.


genEyePlaneQ

public Vector4f genEyePlaneQ
The q texture coordinate generation eye plane.


unit

public TextureUnit unit
A reference to the last unit set.

Constructor Detail

Renderer.TextureUnitRecord

public Renderer.TextureUnitRecord()
Creates a new texture unit record.

Method Detail

invalidate

public void invalidate()
Invalidates this record, forcing it to be reapplied.