![]() |
LibGame v0.4.0
The LG Game Engine - Copyright (C) 2024-2026 ETMSoftware
|
Functions | |
| LG_CubeMap * | lg_cubemap_new (LG_CubeMap_Paths *textures) |
| void | lg_cubemap_free (LG_CubeMap *cubemap) |
| LG_CubeMap_Paths | lg_cubemap_paths (const char *s[], lg_path_type t) |
| const Vertex * | lg_skybox () |
| size_t | lg_sizeof_skybox () |
Variables | |
| static const Vertex | skybox [] |
=== Wrapper funcs to more easily create and manage cubemaps and skyboxes ===
| LG_CubeMap * lg_cubemap_new | ( | LG_CubeMap_Paths * | textures | ) |
Create a new cubemap
A LG_CubeMap is just a LG_Texture made of 6 images
Although texture LG_Path is not used, it is set to LG_CubeMap_Paths->path[0], ie the first image
| 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 |
| LG_CubeMap_Paths lg_cubemap_paths | ( | const char * | s[], |
| lg_path_type | t | ||
| ) |
Return a LG_CubeMap_Paths, ie an array of 6 LG_path, from 6 strings and a lg_path_type
LG_CubeMap_Paths and CUBEMAP_N_FACES are defined in lg_textures.h
| s[] | An array of CUBEMAP_N_FACES (= 6) const strings |
| t | A lg_path_type |
| size_t lg_sizeof_skybox | ( | ) |
Get size of a skybox