diff options
Diffstat (limited to 'src/maths/primitives.h')
-rw-r--r-- | src/maths/primitives.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/maths/primitives.h b/src/maths/primitives.h new file mode 100644 index 0000000..3e0cc5f --- /dev/null +++ b/src/maths/primitives.h @@ -0,0 +1,13 @@ +#pragma once + +#include <assert.h> +#include <stdlib.h> +#include "core.h" +#include "maths_types.h" +#include "render_types.h" + +geometry_data geo_create_plane(f32x2 extents); +geometry_data geo_create_cuboid(f32x3 extents); +geometry_data geo_create_cylinder(f32 radius, f32 height, u32 resolution); +geometry_data geo_create_uvsphere(f32 radius, f32 north_south_lines, f32 east_west_lines); +geometry_data geo_create_icosphere(f32 radius, f32 n_subdivisions);
\ No newline at end of file |