de.grogra.imp3d.glsl.utility
Class GLSLTexture
java.lang.Object
de.grogra.imp3d.glsl.utility.GLSLTexture
- All Implemented Interfaces:
- GLSLOpenGLObject
- Direct Known Subclasses:
- GLSLQueuedTexture, GLSLSkyCube, TextureRenderTarget
public class GLSLTexture
- extends java.lang.Object
- implements GLSLOpenGLObject
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
height
protected int height
index
protected int index
internalFormat
protected int internalFormat
texType
protected int texType
type
protected int type
width
protected int width
GLSLTexture
public GLSLTexture()
bindTo
public void bindTo(javax.media.opengl.GL gl,
int targetTexNo)
cleanup
public void cleanup(OpenGLState glState,
boolean javaOnly)
- Specified by:
cleanup
in interface GLSLOpenGLObject
delete
public void delete(javax.media.opengl.GL gl,
boolean javaonly)
- Delete this texture from OpenGL texture memory.
- Parameters:
gl
-
estimateSizeInByte
public int estimateSizeInByte()
getHeight
public int getHeight()
getIndex
public int getIndex()
- Returns:
- the index
getTexType
public int getTexType()
getType
public int getType()
getWidth
public int getWidth()