Kohi Game Engine
debug_box3d.h
Go to the documentation of this file.
1 #include "defines.h"
2 #include "math/math_types.h"
4 
5 typedef struct debug_box3d {
7  char *name;
11 
14 
17 
20 
24 
28 
struct debug_box3d debug_box3d
KAPI b8 debug_box3d_initialize(debug_box3d *box)
KAPI void debug_box3d_parent_set(debug_box3d *box, transform *parent)
KAPI b8 debug_box3d_create(vec3 size, transform *parent, debug_box3d *out_box)
KAPI b8 debug_box3d_unload(debug_box3d *box)
KAPI void debug_box3d_colour_set(debug_box3d *box, vec4 colour)
KAPI b8 debug_box3d_load(debug_box3d *box)
KAPI void debug_box3d_destroy(debug_box3d *box)
KAPI void debug_box3d_extents_set(debug_box3d *box, extents_3d extents)
KAPI b8 debug_box3d_update(debug_box3d *box)
This file contains global type definitions which are used throughout the entire engine and applicatio...
#define KAPI
Import/export qualifier.
Definition: defines.h:177
unsigned int u32
Unsigned 32-bit integer.
Definition: defines.h:25
_Bool b8
8-bit boolean type
Definition: defines.h:58
Contains various math types required for the engine.
This file contains the types for common resources the engine uses.
Represents a single vertex in 3D space with position and colour data only.
Definition: math_types.h:201
Definition: debug_box3d.h:5
transform xform
Definition: debug_box3d.h:10
colour_vertex_3d * vertices
Definition: debug_box3d.h:13
vec3 size
Definition: debug_box3d.h:8
geometry geo
Definition: debug_box3d.h:15
u32 unique_id
Definition: debug_box3d.h:6
char * name
Definition: debug_box3d.h:7
u32 vertex_count
Definition: debug_box3d.h:12
vec4 colour
Definition: debug_box3d.h:9
Represents the extents of a 3d object.
Definition: math_types.h:165
Represents actual geometry in the world. Typically (but not always, depending on use) paired with a m...
Definition: resource_types.h:311
Represents the transform of an object in the world. Transforms can have a parent whose own transform ...
Definition: math_types.h:215
A 3-element vector.
Definition: math_types.h:49
A 4-element vector.
Definition: math_types.h:89