Top Fields Constructors Methods
org.lwjgl.test.opengles.util

pack-priv abstract Class BufferObject

extends Object
implements GLObject
Class Inheritance
All Implemented Interfaces
org.lwjgl.test.opengles.util.GLObject
Known Direct Subclasses
org.lwjgl.test.opengles.util.BufferObjectArray, org.lwjgl.test.opengles.util.BufferObjectElement
Imports
java.nio.*

Field Summary

Modifier and TypeField and Description
protected final int
private int
size

The BufferObject data size in bytes.

protected int
protected int

Constructor Summary

AccessConstructor and Description
protected
BufferObject(final int type, final int usage)

protected
BufferObject(final int type, final int usage, final Buffer buffer)

protected
BufferObject(final int type, final int usage, final int dataSize)

Method Summary

Modifier and TypeMethod and Description
public void
public abstract void
public abstract void
public final int
public final int
public final int
public final int
public final ByteBuffer
map(final int access, final ByteBuffer oldBuffer)

public final ByteBuffer
map(final int access, final int length, final ByteBuffer oldBuffer)

public final void
setData(final Buffer buffer)

public final void
setData(final int dataSize)

public final boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

IDback to summary
protected final int ID
sizeback to summary
private int size

The BufferObject data size in bytes.

targetback to summary
protected int target
usageback to summary
protected int usage

Constructor Detail

BufferObjectback to summary
protected BufferObject(final int type, final int usage)
BufferObjectback to summary
protected BufferObject(final int type, final int usage, final Buffer buffer)
BufferObjectback to summary
protected BufferObject(final int type, final int usage, final int dataSize)

Method Detail

destroyback to summary
public void destroy()

Implements org.lwjgl.test.opengles.util.GLObject.destroy.

disableback to summary
public abstract void disable()
enableback to summary
public abstract void enable()
getIDback to summary
public final int getID()

Implements org.lwjgl.test.opengles.util.GLObject.getID.

getSizeback to summary
public final int getSize()
getTargetback to summary
public final int getTarget()
getUsageback to summary
public final int getUsage()
mapback to summary
public final ByteBuffer map(final int access, final ByteBuffer oldBuffer)
mapback to summary
public final ByteBuffer map(final int access, final int length, final ByteBuffer oldBuffer)
setDataback to summary
public final void setData(final Buffer buffer)
setDataback to summary
public final void setData(final int dataSize)
unmapback to summary
public final boolean unmap()