|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
Preserves a [ texture-unit, texture-target ] state. More...
Public Member Functions | |
| TextureState (final GL gl, final int textureTarget) throws GLException | |
| Creates a texture state for the retrieved active texture-unit and the given texture-target. More... | |
| 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. More... | |
| final void | restore (final GL gl) |
| Restores the texture-unit's texture-target state. More... | |
| final int | getUnit () |
| Returns the texture-unit of this state, key value. More... | |
| final int | getTarget () |
| Returns the texture-target of this state, key value. More... | |
| final int | getObject () |
| Returns the state's texture-object. More... | |
| final int | getMagFilter () |
| Returns the state's mag-filter param. More... | |
| final int | getMinFilter () |
| Returns the state's min-filter param. More... | |
| final int | getWrapS () |
| Returns the state's wrap-s param. More... | |
| final int | getWrapT () |
| Returns the state's wrap-t param. More... | |
| final String | toString () |
Static Public Member Functions | |
| static final int | getTextureTargetQueryName (final int textureTarget) |
Returns the pname to query the textureTarget currently bound to the active texture-unit. More... | |
Preserves a [ texture-unit, texture-target ] state.
The states keys are the retrieved active texture-unit and the given texture-target for which the following states are being queried:
Definition at line 49 of file TextureState.java.
| com.jogamp.opengl.util.texture.TextureState.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.
| GLException | if textureTarget is not supported |
Definition at line 102 of file TextureState.java.
| com.jogamp.opengl.util.texture.TextureState.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 TextureState.
| gl | current GL context's GL object |
| textureUnit | of range [ GL#GL_TEXTURE0.. ] |
| textureTarget |
| GLException | if textureTarget is not supported |
Definition at line 114 of file TextureState.java.
| final int com.jogamp.opengl.util.texture.TextureState.getMagFilter | ( | ) |
Returns the state's mag-filter param.
Definition at line 152 of file TextureState.java.
| final int com.jogamp.opengl.util.texture.TextureState.getMinFilter | ( | ) |
Returns the state's min-filter param.
Definition at line 154 of file TextureState.java.
| final int com.jogamp.opengl.util.texture.TextureState.getObject | ( | ) |
Returns the state's texture-object.
Definition at line 150 of file TextureState.java.
| final int com.jogamp.opengl.util.texture.TextureState.getTarget | ( | ) |
Returns the texture-target of this state, key value.
Definition at line 147 of file TextureState.java.
|
static |
Returns the pname to query the textureTarget currently bound to the active texture-unit.
Returns 0 is textureTarget is not supported.
Definition at line 56 of file TextureState.java.
| final int com.jogamp.opengl.util.texture.TextureState.getUnit | ( | ) |
Returns the texture-unit of this state, key value.
Unit is of range [ GL#GL_TEXTURE0.. ].
Definition at line 145 of file TextureState.java.
| final int com.jogamp.opengl.util.texture.TextureState.getWrapS | ( | ) |
Returns the state's wrap-s param.
Definition at line 156 of file TextureState.java.
| final int com.jogamp.opengl.util.texture.TextureState.getWrapT | ( | ) |
Returns the state's wrap-t param.
Definition at line 158 of file TextureState.java.
| final void com.jogamp.opengl.util.texture.TextureState.restore | ( | final GL | gl | ) |
Restores the texture-unit's texture-target state.
First the texture-unit is activated, then all states are restored.
Definition at line 135 of file TextureState.java.
| final String com.jogamp.opengl.util.texture.TextureState.toString | ( | ) |
Definition at line 162 of file TextureState.java.