Package com.marginallyclever.ro3.texture
Class TextureWithMetadata
java.lang.Object
com.marginallyclever.ro3.texture.TextureWithMetadata
TextureWithMetadata is an OpenGL Texture with metadata about where it came from and the source
image.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColorAt(double x, double y) intgetImage()com.jogamp.opengl.util.texture.TextureintgetWidth()booleanvoidsetDoNotExport(boolean value) voidunload()Must only be called when there is a valid OpenGL viewport context, likely from within aGLAutoDrawable.voiduse(ShaderProgram shader) Must only be called when there is a valid OpenGL viewport context, likely from within aGLAutoDrawable.
-
Constructor Details
-
TextureWithMetadata
-
-
Method Details
-
getTexture
public com.jogamp.opengl.util.texture.Texture getTexture() -
getSource
-
getImage
-
use
Must only be called when there is a valid OpenGL viewport context, likely from within aGLAutoDrawable.- 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 aGLAutoDrawable. -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
isDoNotExport
public boolean isDoNotExport() -
setDoNotExport
public void setDoNotExport(boolean value) -
getColorAt
-