summaryrefslogtreecommitdiff
path: root/src/maths/primitives.h
blob: 3e0cc5fbe7e5f00eeddb15d875e8afd501527303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);