@EqualityReference public final class KUnitSphere extends Object implements KUnitSphereUsableType
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 KUnitSphere |
newSphere(com.io7m.jcanephora.ArrayBufferType array,
com.io7m.jcanephora.IndexBufferType indices)
Construct a new unit sphere.
|
long |
resourceGetSizeBytes() |
boolean |
resourceIsDeleted() |
public static KUnitSphere newSphere(com.io7m.jcanephora.ArrayBufferType array, com.io7m.jcanephora.IndexBufferType indices)
array
- The array buffer, assumed to contain a unit sphere 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 KUnitSphereUsableType
public com.io7m.jcanephora.IndexBufferUsableType getIndices()
getIndices
in interface KUnitSphereUsableType
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