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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbindTo(javax.media.opengl.GL gl, int targetTexNo) voidcleanup(OpenGLState glState, boolean javaOnly) voiddelete(javax.media.opengl.GL gl, boolean javaonly) Delete this texture from OpenGL texture memory.intintintgetIndex()intintgetType()intgetWidth()
-
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:
cleanupin interfaceGLSLOpenGLObject
-
estimateSizeInByte
public int estimateSizeInByte()
-