package ocgtk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Wrappers.Frustum

type t = [ `frustum ] Gobject.obj

A 3D volume delimited by 2D clip planes.

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

val alloc : unit -> t

Create a new Frustum

val intersects_sphere : t -> [ `sphere ] Gobject.obj -> bool

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

val intersects_box : t -> [ `box ] Gobject.obj -> bool

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

val init_from_matrix : t -> [ `matrix ] Gobject.obj -> t

Initializes a #graphene_frustum_t using the given @matrix.

val init_from_frustum : t -> t -> t

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

val init : t -> [ `plane ] Gobject.obj -> [ `plane ] Gobject.obj -> [ `plane ] Gobject.obj -> [ `plane ] Gobject.obj -> [ `plane ] Gobject.obj -> [ `plane ] Gobject.obj -> t

Initializes the given #graphene_frustum_t using the provided clipping planes.

val get_planes : t -> [ `plane ] Gobject.obj array

Retrieves the planes that define the given #graphene_frustum_t.

val equal : t -> t -> bool

Checks whether the two given #graphene_frustum_t are equal.

val contains_point : t -> [ `point3_d ] Gobject.obj -> bool

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

val get_type : unit -> Gobject.Type.t