jjdh API

jjdh.opengl.engine.buffers
Class TexGen

java.lang.Object
  extended by jjdh.opengl.engine.buffers.TexGen
All Implemented Interfaces:
GLSwitchable, GLBuffer

public class TexGen
extends Object
implements GLBuffer


Nested Class Summary
static class TexGen.Parameter
           
 
Field Summary
private  TexGen.Parameter qParams
           
private  TexGen.Parameter rParams
           
private  TexGen.Parameter sParams
           
private  TexGen.Parameter tParams
           
 
Constructor Summary
TexGen()
           
TexGen(TexGen o)
           
 
Method Summary
 void bind(javax.media.opengl.GL gl)
          Try to load this buffer as an VBO into OpenGL.
 TexGen clone()
           
 void disable(javax.media.opengl.GL gl)
           
 void dispose(javax.media.opengl.GL gl)
          Releases all of the native OpenGL resources used by this buffer.
 void enable(javax.media.opengl.GL gl)
           
 boolean isBindable(javax.media.opengl.GL gl)
          Finds out if the buffer can be loaded as an VBO into OpenGL.
 boolean isVBO()
          Finds out if this buffer is loaded as an VBO into OpenGL or not.
private  void setMode(javax.media.opengl.GL gl, int coordinate, TexGen.Parameter params)
           
 void setParameters(int coordinate, TexGen.Parameter param)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sParams

private TexGen.Parameter sParams

tParams

private TexGen.Parameter tParams

qParams

private TexGen.Parameter qParams

rParams

private TexGen.Parameter rParams
Constructor Detail

TexGen

public TexGen()

TexGen

public TexGen(TexGen o)
Method Detail

clone

public TexGen clone()
Overrides:
clone in class Object

enable

public void enable(javax.media.opengl.GL gl)
Specified by:
enable in interface GLSwitchable

setMode

private void setMode(javax.media.opengl.GL gl,
                     int coordinate,
                     TexGen.Parameter params)

disable

public void disable(javax.media.opengl.GL gl)
Specified by:
disable in interface GLSwitchable

setParameters

public void setParameters(int coordinate,
                          TexGen.Parameter param)

isBindable

public boolean isBindable(javax.media.opengl.GL gl)
Description copied from interface: GLBuffer
Finds out if the buffer can be loaded as an VBO into OpenGL.

Specified by:
isBindable in interface GLBuffer
Parameters:
gl - an interface to OpenGL
Returns:
if this buffer can be loaded as an VBO into OpenGL

bind

public void bind(javax.media.opengl.GL gl)
Description copied from interface: GLBuffer
Try to load this buffer as an VBO into OpenGL.

Specified by:
bind in interface GLBuffer
Parameters:
gl - an interface to OpenGL

isVBO

public boolean isVBO()
Description copied from interface: GLBuffer
Finds out if this buffer is loaded as an VBO into OpenGL or not.

Specified by:
isVBO in interface GLBuffer
Returns:
whether this buffer is loaded as an VBO into OpenGL or not

dispose

public void dispose(javax.media.opengl.GL gl)
Description copied from interface: GLBuffer
Releases all of the native OpenGL resources used by this buffer.

Specified by:
dispose in interface GLBuffer

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.