Kohi Game Engine
skybox.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <core_render_types.h>
4 #include <math/geometry.h>
5 
6 typedef struct skybox_config {
10 
11 typedef enum skybox_state {
18 
19 typedef struct skybox {
21 
24 
28 
36 KAPI b8 skybox_create(skybox_config config, skybox* out_skybox);
37 
39 
41 
43 
u16 ktexture
Represents a texture to be used for rendering purposes, stored on the GPU (VRAM)
Definition: core_render_types.h:299
#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
u64 kname
A kname is a string hash made for quick comparisons versus traditional string comparisons.
Definition: kname.h:36
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.
skybox_state
Definition: skybox.h:11
@ SKYBOX_STATE_LOADED
Definition: skybox.h:16
@ SKYBOX_STATE_INITIALIZED
Definition: skybox.h:14
@ SKYBOX_STATE_UNDEFINED
Definition: skybox.h:12
@ SKYBOX_STATE_LOADING
Definition: skybox.h:15
@ SKYBOX_STATE_CREATED
Definition: skybox.h:13
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 geometry to be used for various purposes (rendering objects in the world,...
Definition: geometry.h:41
Definition: skybox.h:6
kname cubemap_name
The name of the cubemap to be used for the skybox.
Definition: skybox.h:8
Definition: skybox.h:19
kname cubemap_name
Definition: skybox.h:22
u32 shader_set0_instance_id
Definition: skybox.h:26
skybox_state state
Definition: skybox.h:20
kgeometry geometry
Definition: skybox.h:25
ktexture cubemap
Definition: skybox.h:23