Kohi Game Engine
debug_grid.h
Go to the documentation of this file.
1 #include "defines.h"
2 #include "math/math_types.h"
4 
5 typedef enum debug_grid_orientation {
20 
21 typedef struct debug_grid_config {
22  char *name;
30 
33 
39 
40 typedef struct debug_grid {
42  char *name;
50 
53 
56 
59 
62 
65 
69 
KAPI b8 debug_grid_update(debug_grid *grid)
debug_grid_orientation
Definition: debug_grid.h:5
@ DEBUG_GRID_ORIENTATION_XZ
A grid that lies "flat" in the world along the ground plane (y-plane). This is the default configurat...
Definition: debug_grid.h:10
@ DEBUG_GRID_ORIENTATION_XY
A grid that lies on the z-plane (facing the screen by default, orthogonal to the ground plane).
Definition: debug_grid.h:14
@ DEBUG_GRID_ORIENTATION_YZ
A grid that lies on the x-plane (orthogonal to the default screen plane and the ground plane).
Definition: debug_grid.h:18
struct debug_grid_config debug_grid_config
KAPI b8 debug_grid_unload(debug_grid *grid)
KAPI void debug_grid_destroy(debug_grid *grid)
KAPI b8 debug_grid_load(debug_grid *grid)
KAPI b8 debug_grid_create(const debug_grid_config *config, debug_grid *out_grid)
KAPI b8 debug_grid_initialize(debug_grid *grid)
struct debug_grid debug_grid
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
float f32
32-bit floating point number
Definition: defines.h:47
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_grid.h:21
colour_vertex_3d * vertices
Generated vertex data.
Definition: debug_grid.h:37
u32 tile_count_dim_0
The space count in the first dimension of the orientation from both directions outward from origin.
Definition: debug_grid.h:25
char * name
Definition: debug_grid.h:22
debug_grid_orientation orientation
Definition: debug_grid.h:23
u32 vertex_length
The total number of vertices.
Definition: debug_grid.h:35
u32 tile_count_dim_1
The space count in the second dimension of the orientation from both directions outward from origin.
Definition: debug_grid.h:27
b8 use_third_axis
Indicates if a third axis is to be rendered.
Definition: debug_grid.h:32
f32 tile_scale
How large each tile is on the both axes, relative to one unit (default = 1.0).
Definition: debug_grid.h:29
Definition: debug_grid.h:40
colour_vertex_3d * vertices
Definition: debug_grid.h:58
geometry geo
Definition: debug_grid.h:60
u32 unique_id
Definition: debug_grid.h:41
u32 tile_count_dim_0
The space count in the first dimension of the orientation from both directions outward from origin.
Definition: debug_grid.h:45
char * name
Definition: debug_grid.h:42
vec3 origin
Definition: debug_grid.h:55
debug_grid_orientation orientation
Definition: debug_grid.h:43
u32 vertex_count
Definition: debug_grid.h:57
u32 tile_count_dim_1
The space count in the second dimension of the orientation from both directions outward from origin.
Definition: debug_grid.h:47
b8 use_third_axis
Indicates if a third axis is to be rendered.
Definition: debug_grid.h:52
f32 tile_scale
How large each tile is on the both axes, relative to one unit (default = 1.0).
Definition: debug_grid.h:49
extents_3d extents
Definition: debug_grid.h:54
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
A 3-element vector.
Definition: math_types.h:49