public interface JCGLArrayObjectsType
Modifier and Type | Method and Description |
---|---|
JCGLArrayObjectType |
arrayObjectAllocate(JCGLArrayObjectBuilderType b)
Allocate and bind an array object based on the values given in
b . |
void |
arrayObjectBind(JCGLArrayObjectUsableType a)
Bind the given array object.
|
void |
arrayObjectDelete(JCGLArrayObjectType a)
Deletes the object referenced by
a . |
JCGLArrayObjectUsableType |
arrayObjectGetCurrentlyBound() |
JCGLArrayObjectUsableType |
arrayObjectGetDefault()
A default array object is provided in order to allow for code to create and
manipulate
JCGLIndexBufferType values
without needing to explicitly create an array object just for this
purpose. |
JCGLArrayObjectBuilderType |
arrayObjectNewBuilder()
Retrieve a new array object builder.
|
JCGLArrayObjectBuilderType |
arrayObjectNewBuilderFromObject(JCGLArrayObjectUsableType o) |
void |
arrayObjectUnbind()
Unbind the current array object.
|
JCGLArrayObjectBuilderType arrayObjectNewBuilder() throws JCGLException
JCGLContextType
upon which it was
created.JCGLException
- On OpenGL errorsJCGLArrayObjectBuilderType arrayObjectNewBuilderFromObject(JCGLArrayObjectUsableType o)
o
- An array objecto
arrayObjectNewBuilder()
JCGLArrayObjectType arrayObjectAllocate(JCGLArrayObjectBuilderType b) throws JCGLException
Allocate and bind an array object based on the values given in b
.
Calling this method will unbind any currently bound array buffer.
Calling this method will unbind any currently bound array object.
b
- The array object builderJCGLException
- On OpenGL errorsJCGLArrayBuffersType.arrayBufferUnbind()
JCGLArrayObjectUsableType arrayObjectGetCurrentlyBound() throws JCGLException
arrayObjectGetDefault()
if the user has not bound an array object.JCGLException
- Iff an OpenGL error occursvoid arrayObjectBind(JCGLArrayObjectUsableType a) throws JCGLException, JCGLExceptionDeleted
a
- The array objectJCGLException
- Iff an OpenGL error occursJCGLExceptionDeleted
- Iff the given array object has already been
deletedvoid arrayObjectUnbind() throws JCGLException
JCGLException
- Iff an OpenGL error occursvoid arrayObjectDelete(JCGLArrayObjectType a) throws JCGLException, JCGLExceptionDeleted, JCGLExceptionObjectNotDeletable
Deletes the object referenced by a
.
Calling this method will unbind a
iff it is bound.
a
- The array bufferJCGLExceptionDeleted
- If the object is already deletedJCGLException
- Iff an OpenGL error occursJCGLExceptionObjectNotDeletable
- Iff the object is the default array
objectarrayObjectGetDefault()
JCGLArrayObjectUsableType arrayObjectGetDefault()
JCGLIndexBufferType
values
without needing to explicitly create an array object just for this
purpose.Copyright © 2017 <code@io7m.com> http://io7m.com