Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Field Summary
`protected int` | `height`
`protected int` | `index`
`protected int` | `internalFormat`
`protected int` | `texType`
`protected int` | `type`
`protected int` | `width`

Constructor Summary
`GLSLTexture()`

Method Summary
`void` | `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` | `estimateSizeInByte()`
`int` | `getHeight()`
`int` | `getIndex()`
`int` | `getTexType()`
`int` | `getType()`
`int` | `getWidth()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### height

    protected int height

### index

    protected int index

### internalFormat

    protected int internalFormat

### texType

    protected int texType

### type

    protected int type

### width

    protected int width

Constructor Detail

### GLSLTexture

    public GLSLTexture()

Method Detail

### 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()

Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD