Kohi Game Engine
water_plane.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <core_render_types.h>
4 #include <defines.h>
5 #include <math/math_types.h>
6 
7 struct texture_map;
8 
9 typedef struct water_plane {
15 
16  // Instance of water material.
18 
20 
23 
27 
This file contains global type definitions which are used throughout the entire engine and applicatio...
#define KAPI
Import/export qualifier.
Definition: defines.h:209
unsigned int u32
Unsigned 32-bit integer.
Definition: defines.h:27
_Bool b8
8-bit boolean type
Definition: defines.h:60
unsigned long long u64
Unsigned 64-bit integer.
Definition: defines.h:30
Contains various math types required for the engine.
A material instance, which contains handles to both the base material as well as the instance itself....
Definition: core_render_types.h:409
Represents a single vertex in 3D space.
Definition: math_types.h:423
Definition: water_plane.h:9
vertex_3d vertices[4]
Definition: water_plane.h:11
mat4 model
Definition: water_plane.h:10
u64 vertex_buffer_offset
Definition: water_plane.h:14
u32 indices[6]
Definition: water_plane.h:12
kmaterial_instance material
Definition: water_plane.h:17
u64 index_buffer_offset
Definition: water_plane.h:13
a 4x4 matrix, typically used to represent object transformations.
Definition: math_types.h:383
KAPI b8 water_plane_update(water_plane *plane)
KAPI b8 water_plane_initialize(water_plane *plane)
KAPI void water_plane_destroy(water_plane *plane)
KAPI b8 water_plane_load(water_plane *plane)
KAPI b8 water_plane_create(water_plane *out_plane)
KAPI b8 water_plane_unload(water_plane *plane)
struct water_plane water_plane