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
-
Method Summary
Modifier and TypeMethodDescriptionint
getImage()
com.jogamp.opengl.util.texture.Texture
int
getWidth()
boolean
void
setDoNotExport
(boolean value) void
unload()
Must only be called when there is a valid OpenGL viewport context, likely from within aGLAutoDrawable
.void
use
(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)
-