|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.opengl.renderer.BufferObject
public class BufferObject
An OpenGL buffer object.
| Field Summary | |
|---|---|
protected int |
_bytes
The current size of the buffer, in bytes. |
protected int |
_id
The OpenGL identifier for this buffer. |
protected Renderer |
_renderer
The renderer that loaded this buffer. |
| Constructor Summary | |
|---|---|
protected |
BufferObject()
Creates an invalid buffer object (used by the renderer to force reapplication). |
|
BufferObject(Renderer renderer)
Creates a new buffer object for the specified renderer. |
| Method Summary | |
|---|---|
void |
delete()
Deletes this buffer object, rendering it unusable. |
protected void |
finalize()
|
int |
getId()
Returns this buffer's OpenGL identifier. |
protected void |
setBytes(int bytes)
Notes the size of the buffer (and notifies the renderer). |
void |
setData(FloatBuffer data)
Sets the data in this buffer. |
void |
setData(FloatBuffer data,
int usage)
Sets the data in this buffer. |
void |
setData(long size)
Initializes the data in this buffer. |
void |
setData(long size,
int usage)
Initializes the data in this buffer. |
void |
setData(ShortBuffer data)
Sets the data in this buffer. |
void |
setData(ShortBuffer data,
int usage)
Sets the data in this buffer. |
void |
setSubData(long offset,
FloatBuffer data)
Sets part of the data in this buffer. |
void |
setSubData(long offset,
ShortBuffer data)
Sets part of the data in this buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Renderer _renderer
protected int _id
protected int _bytes
| Constructor Detail |
|---|
public BufferObject(Renderer renderer)
protected BufferObject()
| Method Detail |
|---|
public final int getId()
public void setData(long size)
public void setData(long size,
int usage)
public void setData(FloatBuffer data)
public void setData(FloatBuffer data,
int usage)
public void setData(ShortBuffer data)
public void setData(ShortBuffer data,
int usage)
public void setSubData(long offset,
FloatBuffer data)
public void setSubData(long offset,
ShortBuffer data)
public void delete()
protected void finalize()
throws Throwable
finalize in class ObjectThrowableprotected void setBytes(int bytes)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||