Module gl1

Class GLSLTexture

java.lang.Object
de.grogra.glsl.utility.GLSLTexture
All Implemented Interfaces:
GLSLOpenGLObject
Direct Known Subclasses:
GLSLQueuedTexture, GLSLSkyCube, TextureRenderTarget

public class GLSLTexture extends 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 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

      public void cleanup(OpenGLState glState, boolean javaOnly)
      Specified by:
      cleanup in interface GLSLOpenGLObject
    • estimateSizeInByte

      public int estimateSizeInByte()