Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
graphene-types.h File Reference

Go to the source code of this file.

Macros

#define GRAPHENE_VEC2_LEN   2
 
#define GRAPHENE_VEC3_LEN   3
 
#define GRAPHENE_VEC4_LEN   4
 

Typedefs

typedef struct _graphene_vec2_t graphene_vec2_t
 
typedef struct _graphene_vec3_t graphene_vec3_t
 
typedef struct _graphene_vec4_t graphene_vec4_t
 
typedef struct _graphene_matrix_t graphene_matrix_t
 
typedef struct _graphene_point_t graphene_point_t
 
typedef struct _graphene_size_t graphene_size_t
 
typedef struct _graphene_rect_t graphene_rect_t
 
typedef struct _graphene_point3d_t graphene_point3d_t
 
typedef struct _graphene_quad_t graphene_quad_t
 
typedef struct _graphene_quaternion_t graphene_quaternion_t
 
typedef struct _graphene_euler_t graphene_euler_t
 
typedef struct _graphene_plane_t graphene_plane_t
 
typedef struct _graphene_frustum_t graphene_frustum_t
 
typedef struct _graphene_sphere_t graphene_sphere_t
 
typedef struct _graphene_box_t graphene_box_t
 
typedef struct _graphene_triangle_t graphene_triangle_t
 
typedef struct _graphene_ray_t graphene_ray_t
 

Macro Definition Documentation

◆ GRAPHENE_VEC2_LEN

#define GRAPHENE_VEC2_LEN   2

GRAPHENE_VEC2_LEN:

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_init_from_float() and graphene_vec2_to_float(), 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

Definition at line 59 of file graphene-types.h.

◆ GRAPHENE_VEC3_LEN

#define GRAPHENE_VEC3_LEN   3

GRAPHENE_VEC3_LEN:

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_init_from_float() and graphene_vec3_to_float(), 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

Definition at line 82 of file graphene-types.h.

◆ GRAPHENE_VEC4_LEN

#define GRAPHENE_VEC4_LEN   4

GRAPHENE_VEC4_LEN:

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_init_from_float() and graphene_vec4_to_float(), 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

Definition at line 105 of file graphene-types.h.

Typedef Documentation

◆ graphene_box_t

Definition at line 125 of file graphene-types.h.

◆ graphene_euler_t

Definition at line 120 of file graphene-types.h.

◆ graphene_frustum_t

Definition at line 123 of file graphene-types.h.

◆ graphene_matrix_t

Definition at line 111 of file graphene-types.h.

◆ graphene_plane_t

Definition at line 122 of file graphene-types.h.

◆ graphene_point3d_t

Definition at line 117 of file graphene-types.h.

◆ graphene_point_t

Definition at line 113 of file graphene-types.h.

◆ graphene_quad_t

Definition at line 118 of file graphene-types.h.

◆ graphene_quaternion_t

Definition at line 119 of file graphene-types.h.

◆ graphene_ray_t

Definition at line 127 of file graphene-types.h.

◆ graphene_rect_t

Definition at line 115 of file graphene-types.h.

◆ graphene_size_t

Definition at line 114 of file graphene-types.h.

◆ graphene_sphere_t

Definition at line 124 of file graphene-types.h.

◆ graphene_triangle_t

Definition at line 126 of file graphene-types.h.

◆ graphene_vec2_t

Definition at line 107 of file graphene-types.h.

◆ graphene_vec3_t

Definition at line 108 of file graphene-types.h.

◆ graphene_vec4_t

Definition at line 109 of file graphene-types.h.