The states keys are the retrieved active texture-unit and the given texture-target for which the following states are being queried:
- texture-object - GL.GL_TEXTURE_MAG_FILTER - GL.GL_TEXTURE_MIN_FILTER - GL.GL_TEXTURE_WRAP_S - GL.GL_TEXTURE_WRAP_T
| Modifier and Type | Field and Description |
|---|---|
| private final int[] | state
0 - unit 1 - texture object 2 - GL.GL_TEXTURE_MAG_FILTER 3 - GL.GL_TEXTURE_MIN_FILTER 4 - GL.GL_TEXTURE_WRAP_S 5 - GL.GL_TEXTURE_WRAP_T |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | TextureState(final GL
current GL context's GL object gl, final int textureTarget)Creates a texture state for the retrieved active texture-unit and the given texture-target. |
| public | TextureState(final GL
current GL context's GL object gl, final int of range [ textureUnit, final int textureTarget)GL#GL_TEXTURE0.. ]Creates a texture state for the given active texture-unit and the given texture-target. |
| Modifier and Type | Method and Description |
|---|---|
| private static final int | |
| public final int | |
| public final int | |
| public final int | |
| public final int | |
| public static final int | getTextureTargetQueryName(final int textureTarget)
Returns the |
| public final int | |
| public final int | |
| public final int | |
| public final void | |
| private static final String | |
| public final String |
| state | back to summary |
|---|---|
private final int[] state0 - unit 1 - texture object 2 - GL.GL_TEXTURE_MAG_FILTER 3 - GL.GL_TEXTURE_MIN_FILTER 4 - GL.GL_TEXTURE_WRAP_S 5 - GL.GL_TEXTURE_WRAP_T | |
| target | back to summary |
|---|---|
| private final int target | |
| TextureState | back to summary |
|---|---|
| public TextureState(final GL gl, final int textureTarget) throws GLException Creates a texture state for the retrieved active texture-unit and the given texture-target.
See
| |
| TextureState | back to summary |
|---|---|
| public TextureState(final GL gl, final int textureUnit, final int textureTarget) throws GLException Creates a texture state for the given active texture-unit and the given texture-target.
See
| |
| activeTexture | back to summary |
|---|---|
| private static final int activeTexture(final GL gl) | |
| getMagFilter | back to summary |
|---|---|
| public final int getMagFilter() Returns the state's mag-filter param. | |
| getMinFilter | back to summary |
|---|---|
| public final int getMinFilter() Returns the state's min-filter param. | |
| getObject | back to summary |
|---|---|
| public final int getObject() Returns the state's texture-object. | |
| getTarget | back to summary |
|---|---|
| public final int getTarget() Returns the texture-target of this state, key value. | |
| getTextureTargetQueryName | back to summary |
|---|---|
| public static final int getTextureTargetQueryName(final int textureTarget) Returns the
Returns | |
| getUnit | back to summary |
|---|---|
| public final int getUnit() Returns the texture-unit of this state, key value. Unit is of range [ | |
| getWrapS | back to summary |
|---|---|
| public final int getWrapS() Returns the state's wrap-s param. | |
| getWrapT | back to summary |
|---|---|
| public final int getWrapT() Returns the state's wrap-t param. | |
| restore | back to summary |
|---|---|
| public final void restore(final GL gl) Restores the texture-unit's texture-target state. First the texture-unit is activated, then all states are restored.
| |
| toHexString | back to summary |
|---|---|
| private static final String toHexString(final int i) | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object. | |