Kohi Game Engine
skybox.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "math/math_types.h"
7 
8 typedef struct skybox_config {
10  const char* cubemap_name;
13 
14 typedef struct skybox {
24 
32 KAPI b8 skybox_create(skybox_config config, skybox* out_skybox);
33 
35 
37 
39 
#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
unsigned long long u64
Unsigned 64-bit integer.
Definition: defines.h:28
unsigned char u8
Unsigned 8-bit integer.
Definition: defines.h:19
The geometry system is responsible for loading and unloading geometry, as well as reference counting.
Contains various math types required for the engine.
This file contains the types for common resources the engine uses.
struct skybox skybox
KAPI b8 skybox_initialize(skybox *sb)
KAPI b8 skybox_create(skybox_config config, skybox *out_skybox)
Attempts to create a skybox using the specified parameters.
KAPI void skybox_destroy(skybox *sb)
Destroys the provided skybox.
KAPI b8 skybox_load(skybox *sb)
struct skybox_config skybox_config
KAPI b8 skybox_unload(skybox *sb)
Represents the configuration for a geometry.
Definition: geometry_system.h:31
Represents actual geometry in the world. Typically (but not always, depending on use) paired with a m...
Definition: resource_types.h:311
Definition: skybox.h:8
const char * cubemap_name
The name of the cubemap to be used for the skybox.
Definition: skybox.h:10
geometry_config g_config
Definition: skybox.h:11
Definition: skybox.h:14
u32 instance_id
Definition: skybox.h:18
u64 render_frame_number
Synced to the renderer's current frame number when the material has been applied that frame.
Definition: skybox.h:20
texture_map cubemap
Definition: skybox.h:16
u8 draw_index
Synced to the renderer's current draw index when the material has been applied that frame.
Definition: skybox.h:22
skybox_config config
Definition: skybox.h:15
geometry * g
Definition: skybox.h:17
A structure which maps a texture, use and other properties.
Definition: resource_types.h:208