@EqualityReference public final class KFrustumMesh extends Object implements KFrustumMeshUsableType
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 mesh.
|
com.io7m.jcanephora.ArrayBufferUsableType |
getArray() |
float |
getFarXMaximum() |
float |
getFarXMinimum() |
float |
getFarYMaximum() |
float |
getFarYMinimum() |
float |
getFarZ() |
static long |
getFrustumMeshSizeBytes() |
com.io7m.jcanephora.IndexBufferUsableType |
getIndices() |
float |
getNearXMaximum() |
float |
getNearXMinimum() |
float |
getNearYMaximum() |
float |
getNearYMinimum() |
float |
getNearZ() |
static <G extends com.io7m.jcanephora.api.JCGLArrayBuffersType & com.io7m.jcanephora.api.JCGLIndexBuffersType> |
newCacheLoader(G g,
com.io7m.jcanephora.ArrayBufferUpdateUnmappedConstructorType au_cons,
com.io7m.jcanephora.IndexBufferUpdateUnmappedConstructorType iu_cons,
com.io7m.jlog.LogUsableType log)
Construct a new
JCacheLoaderType that produces new
KFrustumMesh instances as required. |
static <G extends com.io7m.jcanephora.api.JCGLArrayBuffersType & com.io7m.jcanephora.api.JCGLIndexBuffersType> |
newFromFOV(G g,
com.io7m.jcanephora.ArrayBufferUpdateUnmappedConstructorType au_cons,
com.io7m.jcanephora.IndexBufferUpdateUnmappedConstructorType iu_cons,
KProjectionFOV p)
Construct a frustum mesh from the given projection.
|
static <G extends com.io7m.jcanephora.api.JCGLArrayBuffersType & com.io7m.jcanephora.api.JCGLIndexBuffersType> |
newFromFrustum(G g,
com.io7m.jcanephora.ArrayBufferUpdateUnmappedConstructorType au_cons,
com.io7m.jcanephora.IndexBufferUpdateUnmappedConstructorType iu_cons,
KProjectionFrustum p)
Construct a frustum mesh from the given projection.
|
static <G extends com.io7m.jcanephora.api.JCGLArrayBuffersType & com.io7m.jcanephora.api.JCGLIndexBuffersType> |
newFromGeneral(G g,
com.io7m.jcanephora.ArrayBufferUpdateUnmappedConstructorType au_cons,
com.io7m.jcanephora.IndexBufferUpdateUnmappedConstructorType iu_cons,
KProjectionType p)
Construct a frustum mesh from the given projection.
|
static <G extends com.io7m.jcanephora.api.JCGLArrayBuffersType & com.io7m.jcanephora.api.JCGLIndexBuffersType> |
newFromOrthographic(G g,
com.io7m.jcanephora.ArrayBufferUpdateUnmappedConstructorType au_cons,
com.io7m.jcanephora.IndexBufferUpdateUnmappedConstructorType iu_cons,
KProjectionOrthographic p)
Construct a frustum mesh from the given projection.
|
long |
resourceGetSizeBytes() |
boolean |
resourceIsDeleted() |
public static long getFrustumMeshSizeBytes()
public static <G extends com.io7m.jcanephora.api.JCGLArrayBuffersType & com.io7m.jcanephora.api.JCGLIndexBuffersType> com.io7m.jcache.JCacheLoaderType<KProjectionType,KFrustumMesh,RException> newCacheLoader(G g, com.io7m.jcanephora.ArrayBufferUpdateUnmappedConstructorType au_cons, com.io7m.jcanephora.IndexBufferUpdateUnmappedConstructorType iu_cons, com.io7m.jlog.LogUsableType log)
JCacheLoaderType
that produces new
KFrustumMesh
instances as required.G
- The precise type of OpenGL interface requiredau_cons
- An array buffer update constructor.iu_cons
- An index buffer update constructor.g
- The OpenGL interfacelog
- A log interfacepublic static <G extends com.io7m.jcanephora.api.JCGLArrayBuffersType & com.io7m.jcanephora.api.JCGLIndexBuffersType> KFrustumMesh newFromFOV(G g, com.io7m.jcanephora.ArrayBufferUpdateUnmappedConstructorType au_cons, com.io7m.jcanephora.IndexBufferUpdateUnmappedConstructorType iu_cons, KProjectionFOV p) throws com.io7m.jcanephora.JCGLException
G
- The precise type of OpenGL interface.au_cons
- An array buffer update constructor.iu_cons
- An index buffer update constructor.g
- The OpenGL interface.p
- The projection.com.io7m.jcanephora.JCGLException
- On errors.public static <G extends com.io7m.jcanephora.api.JCGLArrayBuffersType & com.io7m.jcanephora.api.JCGLIndexBuffersType> KFrustumMesh newFromFrustum(G g, com.io7m.jcanephora.ArrayBufferUpdateUnmappedConstructorType au_cons, com.io7m.jcanephora.IndexBufferUpdateUnmappedConstructorType iu_cons, KProjectionFrustum p) throws com.io7m.jcanephora.JCGLException
G
- The precise type of OpenGL interface.au_cons
- An array buffer update constructor.iu_cons
- An index buffer update constructor.g
- The OpenGL interface.p
- The projection.com.io7m.jcanephora.JCGLException
- On errors.public static <G extends com.io7m.jcanephora.api.JCGLArrayBuffersType & com.io7m.jcanephora.api.JCGLIndexBuffersType> KFrustumMesh newFromGeneral(G g, com.io7m.jcanephora.ArrayBufferUpdateUnmappedConstructorType au_cons, com.io7m.jcanephora.IndexBufferUpdateUnmappedConstructorType iu_cons, KProjectionType p) throws com.io7m.jcanephora.JCGLException
G
- The precise type of OpenGL interface.au_cons
- An array buffer update constructor.iu_cons
- An index buffer update constructor.g
- The OpenGL interface.p
- The projection.com.io7m.jcanephora.JCGLException
- On errors.public static <G extends com.io7m.jcanephora.api.JCGLArrayBuffersType & com.io7m.jcanephora.api.JCGLIndexBuffersType> KFrustumMesh newFromOrthographic(G g, com.io7m.jcanephora.ArrayBufferUpdateUnmappedConstructorType au_cons, com.io7m.jcanephora.IndexBufferUpdateUnmappedConstructorType iu_cons, KProjectionOrthographic p) throws com.io7m.jcanephora.JCGLException
G
- The precise type of OpenGL interface.au_cons
- An array buffer update constructor.iu_cons
- An index buffer update constructor.g
- The OpenGL interface.p
- The projection.com.io7m.jcanephora.JCGLException
- On errors.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 mesh.
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 KFrustumMeshUsableType
public float getFarXMaximum()
public float getFarXMinimum()
public float getFarYMaximum()
public float getFarYMinimum()
public float getFarZ()
public com.io7m.jcanephora.IndexBufferUsableType getIndices()
getIndices
in interface KFrustumMeshUsableType
public float getNearXMaximum()
public float getNearXMinimum()
public float getNearYMaximum()
public float getNearYMinimum()
public float getNearZ()
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