public abstract class GLBuffer extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
GLBuffer.Mutator |
Constructor and Description |
---|
GLBuffer(int length,
int elementSize) |
Modifier and Type | Method and Description |
---|---|
void |
bind(GLVertexAttribute type,
javax.media.opengl.GL2 gl) |
void |
bind(int genericIndex,
javax.media.opengl.GL2 gl) |
ByteBuffer |
createBuffer(int length,
int elementSize) |
boolean |
dispose(javax.media.opengl.GL gl) |
void |
ensureCapacity(int length) |
abstract int |
getBytesPerElement() |
abstract int |
getGlType() |
int |
getMaxVertices() |
int |
getNumVertices() |
boolean |
isDirty() |
void |
makeDirty() |
void |
mutate(GLBuffer.Mutator mutator) |
boolean |
prepare(javax.media.opengl.GL gl) |
void |
unbind(javax.media.opengl.GL2 gl) |
public abstract int getGlType()
public abstract int getBytesPerElement()
public void ensureCapacity(int length)
public ByteBuffer createBuffer(int length, int elementSize)
public boolean isDirty()
public void makeDirty()
public int getNumVertices()
public int getMaxVertices()
public void bind(GLVertexAttribute type, javax.media.opengl.GL2 gl)
public void bind(int genericIndex, javax.media.opengl.GL2 gl)
public void unbind(javax.media.opengl.GL2 gl)
public boolean prepare(javax.media.opengl.GL gl)
public boolean dispose(javax.media.opengl.GL gl)
public void mutate(GLBuffer.Mutator mutator)
Copyright © 2016 Metron, Inc.. All rights reserved.