Pyrogenesis
13997
|
Class SkyManager: Maintain sky settings and textures, and render the sky. More...
#include <SkyManager.h>
Public Member Functions | |
SkyManager () | |
void | RenderSky () |
RenderSky: Render the sky. More... | |
const CStrW & | GetSkySet () const |
GetSkySet(): Return the currently selected sky set name. More... | |
GLuint | GetSkyCube () |
void | SetSkySet (const CStrW &name) |
GetSkySet(): Set the sky set name, potentially loading the textures. More... | |
std::vector< CStrW > | GetSkySets () const |
Return a sorted list of available sky sets, in a form suitable for passing to SetSkySet. More... | |
Public Attributes | |
bool | m_RenderSky |
float | m_HorizonHeight |
Private Types | |
enum | { FRONT, BACK, RIGHT, LEFT, TOP, numTextures } |
Private Member Functions | |
void | LoadSkyTextures () |
Private Attributes | |
CStrW | m_SkySet |
Name of current skyset (a directory within art/textures/skies) More... | |
CTexturePtr | m_SkyTexture [numTextures] |
GLuint | m_SkyCubeMap |
Static Private Attributes | |
static const wchar_t * | s_imageNames [numTextures] |
Class SkyManager: Maintain sky settings and textures, and render the sky.
Definition at line 30 of file SkyManager.h.
|
private |
Enumerator | |
---|---|
FRONT | |
BACK | |
RIGHT | |
LEFT | |
TOP | |
numTextures |
Definition at line 73 of file SkyManager.h.
SkyManager::SkyManager | ( | ) |
Definition at line 63 of file SkyManager.cpp.
|
inline |
Definition at line 51 of file SkyManager.h.
|
inline |
GetSkySet(): Return the currently selected sky set name.
Definition at line 47 of file SkyManager.h.
std::vector< CStrW > SkyManager::GetSkySets | ( | ) | const |
Return a sorted list of available sky sets, in a form suitable for passing to SetSkySet.
Definition at line 197 of file SkyManager.cpp.
|
private |
Definition at line 77 of file SkyManager.cpp.
void SkyManager::RenderSky | ( | ) |
RenderSky: Render the sky.
Definition at line 220 of file SkyManager.cpp.
void SkyManager::SetSkySet | ( | const CStrW & | name | ) |
GetSkySet(): Set the sky set name, potentially loading the textures.
Definition at line 179 of file SkyManager.cpp.
float SkyManager::m_HorizonHeight |
Definition at line 34 of file SkyManager.h.
bool SkyManager::m_RenderSky |
Definition at line 33 of file SkyManager.h.
|
private |
Definition at line 86 of file SkyManager.h.
|
private |
Name of current skyset (a directory within art/textures/skies)
Definition at line 70 of file SkyManager.h.
|
private |
Definition at line 84 of file SkyManager.h.
|
staticprivate |
Definition at line 89 of file SkyManager.h.