Frustum

A 3D volume delimited by 2D clip planes.

The contents of the graphene_frustum_t are private, and should not be modified directly.

Constructors

this
this(graphene_frustum_t* graphene_frustum, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Allocates a new #graphene_frustum_t structure.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

containsPoint
bool containsPoint(Point3D point)

Checks whether a point is inside the volume defined by the given #graphene_frustum_t.

equal
bool equal(Frustum b)

Checks whether the two given #graphene_frustum_t are equal.

free
void free()

Frees the resources allocated by graphene_frustum_alloc().

getFrustumStruct
graphene_frustum_t* getFrustumStruct(bool transferOwnership)

Get the main Gtk struct

getPlanes
void getPlanes(Plane[6] planes)

Retrieves the planes that define the given #graphene_frustum_t.

getStruct
void* getStruct()

the main Gtk struct as a void*

init
Frustum init(Plane p0, Plane p1, Plane p2, Plane p3, Plane p4, Plane p5)

Initializes the given #graphene_frustum_t using the provided clipping planes.

initFromFrustum
Frustum initFromFrustum(Frustum src)

Initializes the given #graphene_frustum_t using the clipping planes of another #graphene_frustum_t.

initFromMatrix
Frustum initFromMatrix(Matrix matrix)

Initializes a #graphene_frustum_t using the given @matrix.

intersectsBox
bool intersectsBox(Box box)

Checks whether the given @box intersects a plane of a #graphene_frustum_t.

intersectsSphere
bool intersectsSphere(Sphere sphere)

Checks whether the given @sphere intersects a plane of a #graphene_frustum_t.

Static functions

getType
GType getType()

Variables

graphene_frustum
graphene_frustum_t* graphene_frustum;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta