jjdh.opengl.engine.buffers
Class TexGen
java.lang.Object
jjdh.opengl.engine.buffers.TexGen
- All Implemented Interfaces:
- GLSwitchable, GLBuffer
public class TexGen
- extends Object
- implements GLBuffer
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)
|
sParams
private TexGen.Parameter sParams
tParams
private TexGen.Parameter tParams
qParams
private TexGen.Parameter qParams
rParams
private TexGen.Parameter rParams
TexGen
public TexGen()
TexGen
public TexGen(TexGen o)
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
Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.