A 3D volume delimited by 2D clip planes.
The contents of the graphene_frustum_t are private, and should not be modified directly.
function Contains_Point
(Self : not null access Graphene_Frustum_T;
Point : not null access Graphene.Point3d.Graphene_Point3D_T)
return Boolean
Checks whether a point is inside the volume defined by the given Graphene.Frustum.Graphene_Frustum_T. Since: gtk+ 1.2
a Graphene.Point3d.Graphene_Point3D_T
true if the point is inside the frustum
function Equal
(Self : not null access Graphene_Frustum_T;
B : not null access Graphene_Frustum_T) return Boolean
Checks whether the two given Graphene.Frustum.Graphene_Frustum_T are equal. Since: gtk+ 1.6
a Graphene.Frustum.Graphene_Frustum_T
true if the given frustums are equal
procedure Free (Self : not null access Graphene_Frustum_T)
Frees the resources allocated by graphene_frustum_alloc. Since: gtk+ 1.2
function From_Object_Free
(B : not null access Graphene_Frustum_T) return Graphene_Frustum_T
Return the underlying object and free the pointer. This is meant to be used internally by GtkAda, and should not in general be called by user code.
procedure Get_Planes
(Self : not null access Graphene_Frustum_T;
Planes : out Graphene_Plane_Array6)
Retrieves the planes that define the given Graphene.Frustum.Graphene_Frustum_T. Since: gtk+ 1.2
return location for an array of 6 Graphene.Plane.Graphene_Plane_T
function Get_Type return Glib.GType
type Graphene_Frustum_T is record
Planes : Graphene_Plane_Array (1 .. 6);
end record;
A 3D volume delimited by 2D clip planes.
The contents of the graphene_frustum_t are private, and should not be modified directly.
type Graphene_Plane_Array6 is array (1 .. 6) of Graphene_Plane_T;
function Init
(Self : not null access Graphene_Frustum_T;
P0 : not null access Graphene.Plane.Graphene_Plane_T;
P1 : not null access Graphene.Plane.Graphene_Plane_T;
P2 : not null access Graphene.Plane.Graphene_Plane_T;
P3 : not null access Graphene.Plane.Graphene_Plane_T;
P4 : not null access Graphene.Plane.Graphene_Plane_T;
P5 : not null access Graphene.Plane.Graphene_Plane_T)
return access Graphene_Frustum_T
Initializes the given Graphene.Frustum.Graphene_Frustum_T using the provided clipping planes. Since: gtk+ 1.2
a clipping plane
a clipping plane
a clipping plane
a clipping plane
a clipping plane
a clipping plane
the initialized frustum
function Init_From_Frustum
(Self : not null access Graphene_Frustum_T;
Src : not null access Graphene_Frustum_T)
return access Graphene_Frustum_T
Initializes the given Graphene.Frustum.Graphene_Frustum_T using the clipping planes of another Graphene.Frustum.Graphene_Frustum_T. Since: gtk+ 1.2
a Graphene.Frustum.Graphene_Frustum_T
the initialized frustum
function Init_From_Matrix
(Self : not null access Graphene_Frustum_T;
Matrix : not null access Graphene.Matrix.Graphene_Matrix_T)
return access Graphene_Frustum_T
Initializes a Graphene.Frustum.Graphene_Frustum_T using the given Matrix. Since: gtk+ 1.2
a Graphene.Matrix.Graphene_Matrix_T
the initialized frustum
function Intersects_Box
(Self : not null access Graphene_Frustum_T;
Box : not null access Graphene.Box.Graphene_Box_T) return Boolean
Checks whether the given Box intersects a plane of a Graphene.Frustum.Graphene_Frustum_T. Since: gtk+ 1.2
a Graphene.Box.Graphene_Box_T
true if the box intersects the frustum
function Intersects_Sphere
(Self : not null access Graphene_Frustum_T;
Sphere : not null access Graphene.Sphere.Graphene_Sphere_T)
return Boolean
Checks whether the given Sphere intersects a plane of a Graphene.Frustum.Graphene_Frustum_T. Since: gtk+ 1.2
a Graphene.Sphere.Graphene_Sphere_T
true if the sphere intersects the frustum