![]() |
Simulant
21.12-515
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
|
Public Member Functions | |
SkyManager (Stage *stage, StageNodePool *pool) | |
SkyManager (const SkyManager &rhs)=delete | |
SkyManager & | operator= (const SkyManager &)=delete |
SkyboxPtr | new_skybox_from_folder (const Path &folder, const TextureFlags &flags=TextureFlags()) |
SkyboxManager::new_skybox_from_folder. More... | |
SkyboxPtr | new_skybox_from_files (const Path &up, const Path &down, const Path &left, const Path &right, const Path &front, const Path &back, const TextureFlags &flags=TextureFlags()) |
new_skybox_from_absolute_files More... | |
SkyboxPtr | skybox (SkyID skybox_id) |
bool | destroy_skybox (SkyID skybox_id) |
bool | destroy_object (Skybox *skybox) |
bool | destroy_object_immediately (Skybox *skybox) |
Public Attributes | |
Property< Stage *SkyManager::* > | stage = { this, &SkyManager::stage_ } |
Friends | |
class | Skybox |
SkyboxPtr smlt::SkyManager::new_skybox_from_files | ( | const Path & | up, |
const Path & | down, | ||
const Path & | left, | ||
const Path & | right, | ||
const Path & | front, | ||
const Path & | back, | ||
const TextureFlags & | flags = TextureFlags() |
||
) |
new_skybox_from_absolute_files
up | |
down | |
left | |
right | |
front | |
back |
Creates a skybox with the 6 images specified. If any of the images are not found this throws a SkyboxImageNotFoundError
SkyboxPtr smlt::SkyManager::new_skybox_from_folder | ( | const Path & | folder, |
const TextureFlags & | flags = TextureFlags() |
||
) |
SkyboxManager::new_skybox_from_folder.
folder |
Scans a folder for image files containing "top", "bottom", "left", "right", "front", "back" in their names. If duplicates are found, or if images are not found, then this function raises SkyboxImageNotFoundError or SkyboxImageDuplicateError respectively