Class JoglTextureStateUtil

java.lang.Object
com.ardor3d.scene.state.jogl.JoglTextureStateUtil

public class JoglTextureStateUtil extends Object
  • Constructor Details

    • JoglTextureStateUtil

      public JoglTextureStateUtil()
  • Method Details

    • load

      public static final void load(Texture texture, int unit)
    • update

      public static void update(Texture texture, int unit)
      bind texture and upload image data to card
      Parameters:
      texture - the texture
      unit - the texture unit
    • apply

      public static void apply(JoglRenderer renderer, TextureState state)
    • applyCombineFactors

      public static void applyCombineFactors(Texture texture, TextureUnitRecord unitRecord, int unit, TextureStateRecord record, ContextCapabilities caps)
    • applyEnvMode

      public static void applyEnvMode(Texture.ApplyMode mode, TextureUnitRecord unitRecord, int unit, TextureStateRecord record, ContextCapabilities caps)
    • applyBlendColor

      public static void applyBlendColor(Texture texture, TextureUnitRecord unitRecord, int unit, TextureStateRecord record, ContextCapabilities caps)
    • applyLodBias

      public static void applyLodBias(Texture texture, TextureUnitRecord unitRecord, int unit, TextureStateRecord record, ContextCapabilities caps)
    • applyBorderColor

      public static void applyBorderColor(Texture texture, TextureRecord texRecord, int unit, TextureStateRecord record, ContextCapabilities caps)
    • applyTextureTransforms

      public static void applyTextureTransforms(Texture texture, int unit, TextureStateRecord record, ContextCapabilities caps)
    • applyTexCoordGeneration

      public static void applyTexCoordGeneration(Texture texture, TextureUnitRecord unitRecord, int unit, TextureStateRecord record, ContextCapabilities caps)
    • checkAndSetUnit

      public static void checkAndSetUnit(int unit, TextureStateRecord record, ContextCapabilities caps)
    • applyShadow

      public static void applyShadow(Texture texture, TextureRecord texRecord, int unit, TextureStateRecord record, ContextCapabilities caps)
      Check if the filter settings of this particular texture have been changed and apply as needed.
      Parameters:
      texture - our texture object
      texRecord - our record of the last state of the texture in gl
      unit - the texture unit
      record - the texture state record
      caps - the capabilities
    • applyFilter

      public static void applyFilter(Texture texture, TextureRecord texRecord, int unit, TextureStateRecord record, ContextCapabilities caps)
      Check if the filter settings of this particular texture have been changed and apply as needed.
      Parameters:
      texture - our texture object
      texRecord - our record of the last state of the texture in gl
      unit - the texture unit
      record - the texture state record
      caps - the capabilities
    • applyWrap

      public static void applyWrap(Texture3D texture, TextureRecord texRecord, int unit, TextureStateRecord record, ContextCapabilities caps)
      Check if the wrap mode of this particular texture has been changed and apply as needed.
      Parameters:
      texture - our texture object
      texRecord - our record of the last state of the texture in gl
      unit - the texture unit
      record - the texture state record
      caps - the capabilities
    • applyWrap

      public static void applyWrap(Texture1D texture, TextureRecord texRecord, int unit, TextureStateRecord record, ContextCapabilities caps)
      Check if the wrap mode of this particular texture has been changed and apply as needed.
      Parameters:
      texture - our texture object
      texRecord - our record of the last state of the texture in gl
      unit - the texture unit
      record - the texture state record
      caps - the capabilities
    • applyWrap

      public static void applyWrap(Texture texture, TextureRecord texRecord, int unit, TextureStateRecord record, ContextCapabilities caps)
      Check if the wrap mode of this particular texture has been changed and apply as needed.
      Parameters:
      texture - our texture object
      texRecord - our record of the last state of the texture in gl
      unit - the texture unit
      record - the texture state record
      caps - the capabilities
    • applyWrap

      public static void applyWrap(Texture2D texture, TextureRecord texRecord, int unit, TextureStateRecord record, ContextCapabilities caps)
      Check if the wrap mode of this particular texture has been changed and apply as needed.
      Parameters:
      texture - our texture object
      texRecord - our record of the last state of the texture in gl
      unit - the texture unit
      record - the texture state record
      caps - the capabilities
    • applyWrap

      public static void applyWrap(TextureCubeMap cubeMap, TextureRecord texRecord, int unit, TextureStateRecord record, ContextCapabilities caps)
      Check if the wrap mode of this particular texture has been changed and apply as needed.
      Parameters:
      cubeMap - our texture object
      texRecord - our record of the last state of the unit in gl
      unit - the texture unit
      record - the texture state record
      caps - the capabilities
    • deleteTexture

      public static void deleteTexture(Texture texture)
    • deleteTextureIds

      public static void deleteTextureIds(Collection<Integer> ids)
    • doTextureBind

      public static void doTextureBind(Texture texture, int unit, boolean invalidateState)
      Useful for external jogl based classes that need to safely set the current texture.
      Parameters:
      texture - the texture
      unit - the texture unit
      invalidateState - true if the state has to be invalidated
    • getGLType

      public static int getGLType(Texture.Type type)
    • getGLCubeMapFace

      public static int getGLCubeMapFace(TextureCubeMap.Face face)