Package: graphene

Macro graphene:with-plane

Lambda List

graphene:with-plane ((var &rest args) &body body)

Syntax

(graphene:with-plane (plane) body) => result
(graphene:with-plane (plane plane1) body) => result
(graphene:with-plane (plane (v graphene:vec4-t) body) => result
(graphene:with-plane (plane normal constant) body) => result
(graphene:with-plane (plane normal (point graphene:point3d-t)) body) => result
(graphene:with-plane (plane a b c) body) => result

Arguments

plane -- a graphene:plane-t instance to create and initialize
plane1 -- a graphene:plane-t instance to use for initialization
v -- a graphene:vec4-t instance to use for initialization
normal -- a graphene:vec3-t instance to use for initialization
point -- a graphene:point3d-t instance to use for initialization
a, b, c -- a graphene:point3d-t instance
constant -- a single float

Details

The graphene:with-plane macro allocates a new graphene:plane-t instance, initializes the box with the given values and executes the body that uses the box. After execution of the body the allocated memory for the plane is released.

Note

The memory is allocated with the graphene:plane-alloc function and released with the graphene:plane-free function.
 

See also

2024-1-20