6#ifndef LG_3D_PRIMITIVES_H
7#define LG_3D_PRIMITIVES_H
19#define QUAD_N_VERTICES 4
20#define QUAD_LINES3D_N_VERTICES 8
22#define CUBOID_N_VERTICES 8
23#define CUBOID_LINES3D_N_VERTICES 24
25#define XYZ_ARROWS_LINES3D_N_VERTICES 18
27#define LINES3D_N_VERTICES_MAX 24
29#if QUAD_LINES3D_N_VERTICES > LINES3D_N_VERTICES_MAX
30 #error Sth is wrong with STH_LINES3D_N_VERTICES stuff
31#elif CUBOID_LINES3D_N_VERTICES > LINES3D_N_VERTICES_MAX
32 #error Sth is wrong with STH_LINES3D_N_VERTICES stuff
33#elif XYZ_ARROWS_LINES3D_N_VERTICES > LINES3D_N_VERTICES_MAX
34 #error Sth is wrong with STH_LINES3D_N_VERTICES stuff
LG_Cuboid lg_cuboid(vec3_t v0, vec3_t v1, vec3_t v2, vec3_t v3, vec3_t v4, vec3_t v5, vec3_t v6, vec3_t v7, LG_Color_u c)
Definition lg_3d_primitives.c:171
size_t lg_sizeof_cube_normalized_vertices_rgba()
Definition lg_3d_primitives.c:791
size_t lg_sizeof_cube_vertex_uv_indices()
Definition lg_3d_primitives.c:704
size_t lg_sizeof_wired_cube_vertex_rgba_indices()
Definition lg_3d_primitives.c:801
XYZ_Arrows lg_xyz_arrows_RH(float k, LG_Color_u x_axis_color, LG_Color_u y_axis_color, LG_Color_u z_axis_color)
Definition lg_3d_primitives.c:439
XYZ_Arrows lg_xyz_arrows_LH(float k, LG_Color_u x_axis_color, LG_Color_u y_axis_color, LG_Color_u z_axis_color)
Definition lg_3d_primitives.c:398
LG_Cuboid lg_centered_unit_cube(LG_Color_u c)
Definition lg_3d_primitives.c:286
LG_Quad lg_centered_unit_quad(LG_Color_u c)
Definition lg_3d_primitives.c:103
vec3_t vec3_RH_to_LH(vec3_t v)
Definition lg_3d_primitives.c:600
LG_Cuboid lg_cuboid_transform(LG_Cuboid cuboid, mat4_t matrix)
Definition lg_3d_primitives.c:307
Lines3D_VB lg_l3d_vb_from_quad(LG_Quad quad)
Definition lg_3d_primitives.c:477
zboolean lg_shape_is_cuboid(LG_Cuboid *shape)
Definition lg_3d_primitives.c:207
const Vertex_rgba * lg_cube_normalized_vertices_rgba()
Definition lg_3d_primitives.c:760
Lines3D_VB lg_l3d_vb_from_cuboid(LG_Cuboid cuboid)
Definition lg_3d_primitives.c:521
LG_Quad lg_quad(vec3_t v0, vec3_t v1, vec3_t v2, vec3_t v3, LG_Color_u c)
Definition lg_3d_primitives.c:68
const unsigned short * lg_cube_vertex_uv_indices()
Definition lg_3d_primitives.c:684
vec3_t vec3_LH_to_RH(vec3_t v)
Definition lg_3d_primitives.c:592
Lines3D_VB lg_l3d_vb_from_arrows(XYZ_Arrows xyz_arrows)
Definition lg_3d_primitives.c:570
LG_Quad lg_quad_transform(LG_Quad quad, mat4_t matrix)
Definition lg_3d_primitives.c:120
const unsigned short * lg_wired_cube_vertex_rgba_indices()
Definition lg_3d_primitives.c:781
const Vertex_uv * lg_cube_normalized_vertices_uv()
Definition lg_3d_primitives.c:661
size_t lg_sizeof_cube_normalized_vertices_uv()
Definition lg_3d_primitives.c:694
Definition lg_vertex.h:111
Definition lg_3d_primitives.h:67
Definition lg_3d_primitives.h:63
Definition lg_3d_primitives.h:53
Definition lg_vertex.h:80
Definition lg_vertex.h:23
Definition lg_3d_primitives.h:71