|
LibGame
v0.4.0
The LG Game Engine - Copyright (C) 2024 ETMSoftware
|
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
size_t lg_sizeof_cube_normalized_vertices_uv()
Definition: lg_3d_primitives.c:652
Definition: lg_vertex.h:21
Definition: lg_3d_primitives.h:64
Definition: lg_3d_primitives.h:68
LG_Cuboid lg_centered_unit_cube(LG_Color_u c)
Definition: lg_3d_primitives.c:286
zboolean lg_shape_is_cuboid(LG_Cuboid *shape)
Definition: lg_3d_primitives.c:207
LG_Cuboid lg_cuboid_transform(LG_Cuboid cuboid, mat4_t matrix)
Definition: lg_3d_primitives.c:307
Definition: lg_3d_primitives.h:60
size_t lg_sizeof_cube_vertex_uv_indices()
Definition: lg_3d_primitives.c:662
const unsigned short * lg_cube_vertex_uv_indices()
Definition: lg_3d_primitives.c:642
const Vertex_uv * lg_cube_normalized_vertices_uv()
Definition: lg_3d_primitives.c:619
Definition: lg_3d_primitives.h:53
Definition: math_3d.h:111
Lines3D_VB lg_l3d_vb_from_arrows(XYZ_Arrows xyz_arrows)
Definition: lg_3d_primitives.c:551
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
Definition: lg_vertex.h:91
const Vertex_rgba * lg_cube_normalized_vertices_rgba()
Definition: lg_3d_primitives.c:718
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
size_t lg_sizeof_wired_cube_vertex_rgba_indices()
Definition: lg_3d_primitives.c:759
LG_Quad lg_quad_transform(LG_Quad quad, mat4_t matrix)
Definition: lg_3d_primitives.c:120
LG_Quad lg_centered_unit_quad(LG_Color_u c)
Definition: lg_3d_primitives.c:103
XYZ_Arrows lg_xyz_arrows(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
const unsigned short * lg_wired_cube_vertex_rgba_indices()
Definition: lg_3d_primitives.c:739
Lines3D_VB lg_l3d_vb_from_cuboid(LG_Cuboid cuboid)
Definition: lg_3d_primitives.c:502
Lines3D_VB lg_l3d_vb_from_quad(LG_Quad quad)
Definition: lg_3d_primitives.c:458
Definition: lg_vertex.h:60
size_t lg_sizeof_cube_normalized_vertices_rgba()
Definition: lg_3d_primitives.c:749
Definition: math_3d.h:167