Kohi Game Engine
debug_box3d.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "defines.h"
4 #include "math/geometry.h"
5 #include "math/math_types.h"
7 
8 typedef struct debug_box3d {
14 
16 
19 
20 struct frame_data;
21 
22 KAPI b8 debug_box3d_create(vec3 size, ktransform parent_ktransform, debug_box3d* out_box);
24 
25 KAPI void debug_box3d_parent_set(debug_box3d* box, ktransform parent_ktransform);
29 
30 KAPI void debug_box3d_render_frame_prepare(debug_box3d* box, const struct frame_data* p_frame_data);
31 
35 
u32 ktransform
Definition: core_resource_types.h:6
struct debug_box3d debug_box3d
KAPI b8 debug_box3d_initialize(debug_box3d *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_parent_set(debug_box3d *box, ktransform parent_ktransform)
KAPI void debug_box3d_extents_set(debug_box3d *box, extents_3d extents)
KAPI void debug_box3d_render_frame_prepare(debug_box3d *box, const struct frame_data *p_frame_data)
KAPI b8 debug_box3d_create(vec3 size, ktransform parent_ktransform, debug_box3d *out_box)
KAPI b8 debug_box3d_update(debug_box3d *box)
KAPI void debug_box3d_points_set(debug_box3d *box, vec3 points[8])
This file contains global type definitions which are used throughout the entire engine and applicatio...
#define KAPI
Import/export qualifier.
Definition: defines.h:209
_Bool b8
8-bit boolean type
Definition: defines.h:60
u64 kname
A kname is a string hash made for quick comparisons versus traditional string comparisons.
Definition: kname.h:36
Contains various math types required for the engine.
Definition: debug_box3d.h:8
kname name
Definition: debug_box3d.h:9
vec3 size
Definition: debug_box3d.h:10
b8 is_dirty
Definition: debug_box3d.h:15
ktransform ktransform
Definition: debug_box3d.h:12
ktransform parent_ktransform
Definition: debug_box3d.h:13
vec4 colour
Definition: debug_box3d.h:11
kgeometry geometry
Definition: debug_box3d.h:17
Represents the extents of a 3d object.
Definition: math_types.h:401
Engine-level current frame-specific data.
Definition: frame_data.h:15
Represents geometry to be used for various purposes (rendering objects in the world,...
Definition: geometry.h:41
A 3-element vector.
Definition: math_types.h:117
A 4-element vector.
Definition: math_types.h:229