Kohi Game Engine
skybox.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "math/geometry.h"
5 
6 typedef struct skybox_config {
10 
11 typedef enum skybox_state {
18 
19 typedef struct skybox {
21 
24 
29 
37 KAPI b8 skybox_create(skybox_config config, skybox* out_skybox);
38 
40 
42 
44 
#define KAPI
Import/export qualifier.
Definition: defines.h:205
unsigned int u32
Unsigned 32-bit integer.
Definition: defines.h:25
_Bool b8
8-bit boolean type
Definition: defines.h:58
u64 kname
A kname is a string hash made for quick comparisons versus traditional string comparisons.
Definition: kname.h:36
u16 ktexture
Represents a texture to be used for rendering purposes, stored on the GPU (VRAM)
Definition: kresource_types.h:45
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:38
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
u32 group_id
Definition: skybox.h:26
kname cubemap_name
Definition: skybox.h:22
skybox_state state
Definition: skybox.h:20
u32 draw_id
Definition: skybox.h:27
kgeometry geometry
Definition: skybox.h:25
ktexture cubemap
Definition: skybox.h:23