@EqualityReference public final class KUnitCube extends Object implements KUnitCubeUsableType
1
.Modifier and Type | Method and Description |
---|---|
<G extends com.io7m.jcanephora.api.JCGLArrayBuffersType & com.io7m.jcanephora.api.JCGLIndexBuffersType> |
delete(G g)
Delete all resources associated with the given sphere.
|
com.io7m.jcanephora.ArrayBufferUsableType |
getArray() |
com.io7m.jcanephora.IndexBufferUsableType |
getIndices() |
static KUnitCube |
newCube(com.io7m.jcanephora.ArrayBufferType array,
com.io7m.jcanephora.IndexBufferType indices)
Construct a new unit cube.
|
long |
resourceGetSizeBytes() |
boolean |
resourceIsDeleted() |
public static KUnitCube newCube(com.io7m.jcanephora.ArrayBufferType array, com.io7m.jcanephora.IndexBufferType indices)
array
- The array buffer, assumed to contain a unit cube mesh.indices
- The index buffer.public <G extends com.io7m.jcanephora.api.JCGLArrayBuffersType & com.io7m.jcanephora.api.JCGLIndexBuffersType> void delete(G g) throws com.io7m.jcanephora.JCGLException
Delete all resources associated with the given sphere.
G
- The precise type of OpenGL interface.g
- The OpenGL interface.com.io7m.jcanephora.JCGLException
- On errors.public com.io7m.jcanephora.ArrayBufferUsableType getArray()
getArray
in interface KUnitCubeUsableType
public com.io7m.jcanephora.IndexBufferUsableType getIndices()
getIndices
in interface KUnitCubeUsableType
public long resourceGetSizeBytes()
resourceGetSizeBytes
in interface com.io7m.jcanephora.JCGLResourceSizedType
public boolean resourceIsDeleted()
resourceIsDeleted
in interface com.io7m.jcanephora.JCGLResourceUsableType
Copyright © 2015 <code@io7m.com> http://io7m.com