graphene.types

D types for graphene1 library

Types 3

aliasEulerOrder = graphene_euler_order_t
aliasRayIntersectionKind = graphene_ray_intersection_kind_t
aliasSimd4F = graphene_simd4f_t

Variables 5

enumvarPI = 3.141593
enumvarPI_2 = 1.570796
enumvarVEC2_LEN = 2

Evaluates to the number of components of a #graphene_vec2_t.

This symbol is useful when declaring a C array of floating point values to be used with [graphene.vec2.Vec2.initFromFloat] and [graphene.vec2.Vec2.toFloat], e.g.

float v[GRAPHENE_VEC2_LEN];

 // vec is defined elsewhere
 graphene_vec2_to_float (&vec, v);

 for (int i = 0; i < GRAPHENE_VEC2_LEN; i++)
   fprintf (stdout, "component %d: %g\n", i, v[i]);

enumvarVEC3_LEN = 3

Evaluates to the number of components of a #graphene_vec3_t.

This symbol is useful when declaring a C array of floating point values to be used with [graphene.vec3.Vec3.initFromFloat] and [graphene.vec3.Vec3.toFloat], e.g.

float v[GRAPHENE_VEC3_LEN];

 // vec is defined elsewhere
 graphene_vec3_to_float (&vec, v);

 for (int i = 0; i < GRAPHENE_VEC2_LEN; i++)
   fprintf (stdout, "component %d: %g\n", i, v[i]);

enumvarVEC4_LEN = 4

Evaluates to the number of components of a #graphene_vec4_t.

This symbol is useful when declaring a C array of floating point values to be used with [graphene.vec4.Vec4.initFromFloat] and [graphene.vec4.Vec4.toFloat], e.g.

float v[GRAPHENE_VEC4_LEN];

 // vec is defined elsewhere
 graphene_vec4_to_float (&vec, v);

 for (int i = 0; i < GRAPHENE_VEC4_LEN; i++)
   fprintf (stdout, "component %d: %g\n", i, v[i]);