gzz.gfx.gl
Class GL.TexRect

java.lang.Object
  |
  +--gzz.vob.Vob
        |
        +--gzz.gfx.gl.GL.JavaObject
              |
              +--gzz.gfx.gl.GL.NonRenderableJavaObject
                    |
                    +--gzz.gfx.gl.GL.TexRect
All Implemented Interfaces:
GLDeletable
Enclosing class:
GL

public static class GL.TexRect
extends GL.NonRenderableJavaObject

A rectangular region of an image, loaded into a texture.


Nested Class Summary
 
Nested classes inherited from class gzz.vob.Vob
Vob.RenderInfo
 
Field Summary
 
Fields inherited from class gzz.vob.Vob
dbg, rcsid
 
Method Summary
protected  void deleteObj()
           
 double getTexCoord(int coordInd, double c)
          Get a texture coordinate transformed to within the rectangle.
 int getTexId()
          Get the OpenGL texture id in which this texture is stored.
 
Methods inherited from class gzz.gfx.gl.GL.JavaObject
deleteObject, finalize, getId, render
 
Methods inherited from class gzz.vob.Vob
addToListGL, addToListGL, intersect, putGL, putGL, putGL, putGL
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

deleteObj

protected void deleteObj()
Specified by:
deleteObj in class GL.JavaObject

getTexId

public int getTexId()
Get the OpenGL texture id in which this texture is stored.


getTexCoord

public double getTexCoord(int coordInd,
                          double c)
Get a texture coordinate transformed to within the rectangle.

Parameters:
coordInd - 0=x, 1=y