endrov.gl
Class EvGLTexture3D

java.lang.Object
  extended by endrov.gl.EvGLTexture3D

public class EvGLTexture3D
extends java.lang.Object

Class to upload and manage 3D textures


Field Summary
 java.nio.ByteBuffer b
           
 int depth
           
 int height
           
 int width
           
 
Method Summary
static EvGLTexture3D allocate(int width, int height, int depth, Viewer3DView view)
           
 void bind(javax.media.opengl.GL gl)
           
 void dispose(javax.media.opengl.GL gl)
           
 void needReinit()
           
 void prepare(javax.media.opengl.GL glin)
          Upload texture to GL2.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

b

public java.nio.ByteBuffer b

width

public int width

height

public int height

depth

public int depth
Method Detail

needReinit

public void needReinit()

allocate

public static EvGLTexture3D allocate(int width,
                                     int height,
                                     int depth,
                                     Viewer3DView view)

prepare

public void prepare(javax.media.opengl.GL glin)
Upload texture to GL2. can be called multiple times, action is only taken first time


dispose

public void dispose(javax.media.opengl.GL gl)

bind

public void bind(javax.media.opengl.GL gl)