Class TextureWithMetadata

java.lang.Object
com.marginallyclever.ro3.texture.TextureWithMetadata

public class TextureWithMetadata extends Object
TextureWithMetadata is an OpenGL Texture with metadata about where it came from and the source image.
  • Constructor Details

  • Method Details

    • getTexture

      public com.jogamp.opengl.util.texture.Texture getTexture()
    • getSource

      public String getSource()
    • getImage

      public BufferedImage getImage()
    • use

      public void use(ShaderProgram shader)
      Must only be called when there is a valid OpenGL viewport context, likely from within a GLAutoDrawable.
      Parameters:
      shader - the shader to use.
    • unload

      public void unload()
      Must only be called when there is a valid OpenGL viewport context, likely from within a GLAutoDrawable.
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • isDoNotExport

      public boolean isDoNotExport()
    • setDoNotExport

      public void setDoNotExport(boolean value)