Class TextureUtil

java.lang.Object
com.jme3.renderer.opengl.TextureUtil

public final class TextureUtil extends Object
Internal utility class used by GLRenderer to manage textures.
  • Constructor Details

    • TextureUtil

      public TextureUtil(GL gl, GL2 gl2, GLExt glext)
  • Method Details

    • initialize

      public void initialize(EnumSet<Caps> caps)
    • getImageFormat

      public GLImageFormat getImageFormat(Image.Format fmt, boolean isSrgb)
    • getImageFormatWithError

      public GLImageFormat getImageFormatWithError(Image.Format fmt, boolean isSrgb)
    • uploadTexture

      public void uploadTexture(Image image, int target, int index, boolean linearizeSrgb)
    • uploadSubTexture

      @Deprecated public void uploadSubTexture(Image image, int target, int index, int x, int y, boolean linearizeSrgb)
      Deprecated.
      Use uploadSubTexture(int target, Image src, int index,int targetX, int targetY,int srcX,int srcY, int areaWidth,int areaHeight, boolean linearizeSrgb)
    • uploadSubTexture

      public void uploadSubTexture(int target, Image src, int index, int targetX, int targetY, int areaX, int areaY, int areaWidth, int areaHeight, boolean linearizeSrgb)