gi-graphene-1.0.5: Graphene bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Graphene.Constants

Description

 
Synopsis

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

pattern PI_2 :: Double Source #

No description available in the introspection data.

pattern PI :: Double Source #

No description available in the introspection data.