jjdh API

jjdh.opengl.engine.buffers
Interface GLBuffer

All Superinterfaces:
GLSwitchable
All Known Implementing Classes:
AbstractBuffer, ColorBuffer, FloatBlockBuffer, IndexBuffer, NormalBuffer, QuadBuffer, SingleFloatBuffer, SingleIntegerBuffer, SpecializedIndexBuffer, TexGen, TextureBuffer, TriangleBuffer, VertexBuffer

public interface GLBuffer
extends GLSwitchable


Method Summary
 void bind(javax.media.opengl.GL gl)
          Try to load this buffer as an VBO into OpenGL.
 void dispose(javax.media.opengl.GL gl)
          Releases all of the native OpenGL resources used by this buffer.
 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.
 
Methods inherited from interface jjdh.opengl.core.interfaces.GLSwitchable
disable, enable
 

Method Detail

isBindable

boolean isBindable(javax.media.opengl.GL gl)
Finds out if the buffer can be loaded as an VBO into OpenGL.

Parameters:
gl - an interface to OpenGL
Returns:
if this buffer can be loaded as an VBO into OpenGL

bind

void bind(javax.media.opengl.GL gl)
Try to load this buffer as an VBO into OpenGL.

Parameters:
gl - an interface to OpenGL

isVBO

boolean isVBO()
Finds out if this buffer is loaded as an VBO into OpenGL or not.

Returns:
whether this buffer is loaded as an VBO into OpenGL or not

dispose

void dispose(javax.media.opengl.GL gl)
Releases all of the native OpenGL resources used by this buffer.


jjdh API

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