Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Documentation
pattern VEC4_LEN :: Int32 Source #
Evaluates to the number of components of a Vec4
.
This symbol is useful when declaring a C array of floating
point values to be used with vec4InitFromFloat
and
vec4ToFloat
, 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]);
Since: 1.0
pattern VEC3_LEN :: Int32 Source #
Evaluates to the number of components of a Vec3
.
This symbol is useful when declaring a C array of floating
point values to be used with vec3InitFromFloat
and
vec3ToFloat
, 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]);
Since: 1.0
pattern VEC2_LEN :: Int32 Source #
Evaluates to the number of components of a Vec2
.
This symbol is useful when declaring a C array of floating
point values to be used with vec2InitFromFloat
and
vec2ToFloat
, 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]);
Since: 1.0