public final class R2ProjectionMesh extends Object implements R2ProjectionMeshType
Modifier and Type | Method and Description |
---|---|
com.io7m.jcanephora.core.JCGLArrayObjectUsableType |
arrayObject() |
static R2ProjectionMesh |
create(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.
|
void |
delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
Delete the current object.
|
boolean |
isDeleted() |
boolean |
isUpdateRequired() |
R2ProjectionReadableType |
projectionReadable() |
R2ProjectionType |
projectionWritable() |
void |
updateProjection(com.io7m.jcanephora.core.api.JCGLArrayBuffersType ga)
Update the mesh for the current projection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
wrap
public static R2ProjectionMesh create(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 R2ProjectionMeshReadableType
public R2ProjectionReadableType projectionReadable()
projectionReadable
in interface R2ProjectionMeshReadableType
public boolean isUpdateRequired()
isUpdateRequired
in interface R2ProjectionMeshReadableType
true
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
R2DeletableType
delete
in interface R2DeletableType
g
- An OpenGL interfaceR2Exception
- On errorspublic boolean isDeleted()
isDeleted
in interface com.io7m.jcanephora.core.JCGLResourceUsableType
public void updateProjection(com.io7m.jcanephora.core.api.JCGLArrayBuffersType ga)
R2ProjectionMeshWritableType
updateProjection
in interface R2ProjectionMeshWritableType
ga
- An array buffer interfacepublic R2ProjectionType projectionWritable()
projectionWritable
in interface R2ProjectionMeshWritableType
Copyright © 2017 <code@io7m.com> http://io7m.com