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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
widthprotected int width
- 
heightprotected int height
- 
indexprotected int index
- 
internalFormatprotected int internalFormat
- 
texTypeprotected int texType
- 
typeprotected int type
 
- 
- 
Constructor Details- 
GLSLTexturepublic GLSLTexture()
 
- 
- 
Method Details- 
getWidthpublic int getWidth()
- 
getHeightpublic int getHeight()
- 
getTypepublic int getType()
- 
getTexTypepublic int getTexType()
- 
bindTopublic void bindTo(javax.media.opengl.GL gl, int targetTexNo) 
- 
deletepublic void delete(javax.media.opengl.GL gl, boolean javaonly) Delete this texture from OpenGL texture memory.- Parameters:
- gl-
 
- 
getIndexpublic int getIndex()- Returns:
- the index
 
- 
cleanup- Specified by:
- cleanupin interface- GLSLOpenGLObject
 
- 
estimateSizeInBytepublic int estimateSizeInByte()
 
-