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
enumvar
PI = 3.141593enumvar
PI_2 = 1.570796enumvar
VEC2_LEN = 2Evaluates 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]);enumvar
VEC3_LEN = 3Evaluates 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]);enumvar
VEC4_LEN = 4Evaluates 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]);