package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.graphene/Ocgtk_graphene/Graphene/Wrappers/Frustum/index.html

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