JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.util.texture.TextureState Class Reference

Preserves a [ texture-unit, texture-target ] state. More...

Collaboration diagram for com.jogamp.opengl.util.texture.TextureState:

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TextureState() [1/2]

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.

Parameters
glcurrent GL context's GL object
textureTarget
Exceptions
GLExceptionif textureTarget is not supported

Definition at line 102 of file TextureState.java.

◆ TextureState() [2/2]

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.

Parameters
glcurrent GL context's GL object
textureUnitof range [ GL#GL_TEXTURE0.. ]
textureTarget
Exceptions
GLExceptionif textureTarget is not supported

Definition at line 114 of file TextureState.java.

Here is the call graph for this function:

Member Function Documentation

◆ getMagFilter()

final int com.jogamp.opengl.util.texture.TextureState.getMagFilter ( )

Returns the state's mag-filter param.

Definition at line 152 of file TextureState.java.

Here is the caller graph for this function:

◆ getMinFilter()

final int com.jogamp.opengl.util.texture.TextureState.getMinFilter ( )

Returns the state's min-filter param.

Definition at line 154 of file TextureState.java.

Here is the caller graph for this function:

◆ getObject()

final int com.jogamp.opengl.util.texture.TextureState.getObject ( )

Returns the state's texture-object.

Definition at line 150 of file TextureState.java.

◆ getTarget()

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.

◆ getTextureTargetQueryName()

static final int com.jogamp.opengl.util.texture.TextureState.getTextureTargetQueryName ( final int  textureTarget)
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.

Here is the caller graph for this function:

◆ getUnit()

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.

Here is the caller graph for this function:

◆ getWrapS()

final int com.jogamp.opengl.util.texture.TextureState.getWrapS ( )

Returns the state's wrap-s param.

Definition at line 156 of file TextureState.java.

Here is the caller graph for this function:

◆ getWrapT()

final int com.jogamp.opengl.util.texture.TextureState.getWrapT ( )

Returns the state's wrap-t param.

Definition at line 158 of file TextureState.java.

Here is the caller graph for this function:

◆ restore()

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.

Parameters
glcurrent GL context's GL object

Definition at line 135 of file TextureState.java.

Here is the call graph for this function:

◆ toString()

final String com.jogamp.opengl.util.texture.TextureState.toString ( )

Definition at line 162 of file TextureState.java.


The documentation for this class was generated from the following file: