java.lang.Object
de.grogra.glsl.utility.GLSLTexture
- All Implemented Interfaces:
GLSLOpenGLObject
- Direct Known Subclasses:
GLSLQueuedTexture
,GLSLSkyCube
,TextureRenderTarget
Simple Texture class base for some "deferred Textures" which setup data but create
glTextures only on demand. Also used as base for ShadowMaps.
- Author:
- Konni Hartmann
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bindTo
(javax.media.opengl.GL gl, int targetTexNo) void
cleanup
(OpenGLState glState, boolean javaOnly) void
delete
(javax.media.opengl.GL gl, boolean javaonly) Delete this texture from OpenGL texture memory.int
int
int
getIndex()
int
int
getType()
int
getWidth()
-
Field Details
-
width
protected int width -
height
protected int height -
index
protected int index -
internalFormat
protected int internalFormat -
texType
protected int texType -
type
protected int type
-
-
Constructor Details
-
GLSLTexture
public GLSLTexture()
-
-
Method Details
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getType
public int getType() -
getTexType
public int getTexType() -
bindTo
public void bindTo(javax.media.opengl.GL gl, int targetTexNo) -
delete
public void delete(javax.media.opengl.GL gl, boolean javaonly) Delete this texture from OpenGL texture memory.- Parameters:
gl
-
-
getIndex
public int getIndex()- Returns:
- the index
-
cleanup
- Specified by:
cleanup
in interfaceGLSLOpenGLObject
-
estimateSizeInByte
public int estimateSizeInByte()
-