Kohi Game Engine
debug_line3d.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "defines.h"
4 #include "math/math_types.h"
6 
7 typedef struct debug_line3d {
9  char *name;
14 
17 
20 
21 KAPI b8 debug_line3d_create(vec3 point_0, vec3 point_1, transform *parent, debug_line3d *out_line);
23 
26 KAPI void debug_line3d_points_set(debug_line3d *line, vec3 point_0, vec3 point_1);
27 
31 
KAPI b8 debug_line3d_initialize(debug_line3d *line)
KAPI void debug_line3d_destroy(debug_line3d *line)
KAPI void debug_line3d_parent_set(debug_line3d *line, transform *parent)
KAPI void debug_line3d_colour_set(debug_line3d *line, vec4 colour)
KAPI b8 debug_line3d_load(debug_line3d *line)
struct debug_line3d debug_line3d
KAPI b8 debug_line3d_update(debug_line3d *line)
KAPI void debug_line3d_points_set(debug_line3d *line, vec3 point_0, vec3 point_1)
KAPI b8 debug_line3d_create(vec3 point_0, vec3 point_1, transform *parent, debug_line3d *out_line)
KAPI b8 debug_line3d_unload(debug_line3d *line)
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_line3d.h:7
transform xform
Definition: debug_line3d.h:13
colour_vertex_3d * vertices
Definition: debug_line3d.h:16
geometry geo
Definition: debug_line3d.h:18
u32 unique_id
Definition: debug_line3d.h:8
char * name
Definition: debug_line3d.h:9
u32 vertex_count
Definition: debug_line3d.h:15
vec3 point_0
Definition: debug_line3d.h:10
vec3 point_1
Definition: debug_line3d.h:11
vec4 colour
Definition: debug_line3d.h:12
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