public final class R2ProjectionMesh extends Object implements R2ProjectionMeshType
| Modifier and Type | Method and Description |
|---|---|
com.io7m.jcanephora.core.JCGLArrayObjectUsableType |
arrayObject() |
void |
delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
Delete the current object.
|
boolean |
isDeleted() |
boolean |
isUpdateRequired() |
static R2ProjectionMeshType |
newMesh(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g,
R2ProjectionType p,
com.io7m.jcanephora.core.JCGLUsageHint array_hint,
com.io7m.jcanephora.core.JCGLUsageHint index_hint)
Construct a mesh based on the given projection.
|
R2ProjectionReadableType |
projectionReadable() |
R2ProjectionType |
projectionWritable() |
void |
updateProjection(com.io7m.jcanephora.core.api.JCGLArrayBuffersType ga)
Update the mesh for the current projection.
|
public static R2ProjectionMeshType newMesh(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g, R2ProjectionType p, com.io7m.jcanephora.core.JCGLUsageHint array_hint, com.io7m.jcanephora.core.JCGLUsageHint index_hint)
g - A GL interfacep - The initial projectionarray_hint - The usage hint for the array buffer that backs the meshindex_hint - The usage hint for the index buffer that backs the mesh
indicespublic com.io7m.jcanephora.core.JCGLArrayObjectUsableType arrayObject()
arrayObject in interface R2ProjectionMeshReadableTypepublic R2ProjectionReadableType projectionReadable()
projectionReadable in interface R2ProjectionMeshReadableTypepublic boolean isUpdateRequired()
isUpdateRequired in interface R2ProjectionMeshReadableTypetrue iff the values of the projection have changed more
recently than the last call to R2ProjectionMeshWritableType.updateProjection(com.io7m.jcanephora.core.api.JCGLArrayBuffersType)public void delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
throws R2Exception
R2DeletableTypedelete in interface R2DeletableTypeg - An OpenGL interfaceR2Exception - On errorspublic boolean isDeleted()
isDeleted in interface com.io7m.jcanephora.core.JCGLResourceUsableTypepublic void updateProjection(com.io7m.jcanephora.core.api.JCGLArrayBuffersType ga)
R2ProjectionMeshWritableTypeupdateProjection in interface R2ProjectionMeshWritableTypega - An array buffer interfacepublic R2ProjectionType projectionWritable()
projectionWritable in interface R2ProjectionMeshWritableTypeCopyright © 2016 <code@io7m.com> http://io7m.com