Simulant  21.06-50
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
Inheritance diagram for smlt::SkyManager:
smlt::WindowHolder

Public Member Functions

 SkyManager (Window *window, 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)
 
void destroy_skybox (SkyID skybox_id)
 
- Public Member Functions inherited from smlt::WindowHolder
 WindowHolder (Window *window)
 

Public Attributes

Property< Stage *SkyManager::* > stage = { this, &SkyManager::stage_ }
 
- Public Attributes inherited from smlt::WindowHolder
Property< Window *WindowHolder::* > window = { this, &WindowHolder::window_ }
 

Friends

class Skybox
 

Additional Inherited Members

- Protected Member Functions inherited from smlt::WindowHolder
Windowget_window () const
 

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: