Simulant  21.12-515
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | Public Attributes | Friends | List of all members
smlt::SkyManager Class Reference

Public Member Functions

 SkyManager (Stage *stage, StageNodePool *pool)
 
 SkyManager (const SkyManager &rhs)=delete
 
SkyManageroperator= (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
 

Member Function Documentation

◆ new_skybox_from_files()

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

Parameters
up
down
left
right
front
back
Returns
New skybox ID

Creates a skybox with the 6 images specified. If any of the images are not found this throws a SkyboxImageNotFoundError

◆ new_skybox_from_folder()

SkyboxPtr smlt::SkyManager::new_skybox_from_folder ( const Path folder,
const TextureFlags flags = TextureFlags() 
)

SkyboxManager::new_skybox_from_folder.

Parameters
folder
Returns
New skybox ID

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


The documentation for this class was generated from the following files: