LibGame
v0.4.0
The LG Game Engine - Copyright (C) 2024 ETMSoftware
|
Functions | |
LG_CubeMap * | lg_cubemap_new (const char **textures) |
void | lg_cubemap_free (LG_CubeMap *cubemap) |
const Vertex * | lg_skybox () |
size_t | lg_sizeof_skybox () |
=== Wrapper funcs to more easily create and manage cubemaps and skyboxes ===
LG_CubeMap* lg_cubemap_new | ( | const char ** | textures | ) |
Create a new cubemap
A LG_CubeMap is just a LG_Texture
textures | An array of 6 image paths in {right, left, top, bottom, front, back} order |
void lg_cubemap_free | ( | LG_CubeMap * | cubemap | ) |
Remove cubemap from texture list AND free associated resources
cubemap | A pointer to a LG_CubeMap |
size_t lg_sizeof_skybox | ( | ) |
Get size of a skybox