Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SkyManager Class Reference

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_ts_imageNames [numTextures]
 

Detailed Description

Class SkyManager: Maintain sky settings and textures, and render the sky.

Definition at line 30 of file SkyManager.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
FRONT 
BACK 
RIGHT 
LEFT 
TOP 
numTextures 

Definition at line 73 of file SkyManager.h.

Constructor & Destructor Documentation

SkyManager::SkyManager ( )

Definition at line 63 of file SkyManager.cpp.

Member Function Documentation

GLuint SkyManager::GetSkyCube ( )
inline

Definition at line 51 of file SkyManager.h.

const CStrW& SkyManager::GetSkySet ( ) const
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.

void SkyManager::LoadSkyTextures ( )
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.

Member Data Documentation

float SkyManager::m_HorizonHeight

Definition at line 34 of file SkyManager.h.

bool SkyManager::m_RenderSky

Definition at line 33 of file SkyManager.h.

GLuint SkyManager::m_SkyCubeMap
private

Definition at line 86 of file SkyManager.h.

CStrW SkyManager::m_SkySet
private

Name of current skyset (a directory within art/textures/skies)

Definition at line 70 of file SkyManager.h.

CTexturePtr SkyManager::m_SkyTexture[numTextures]
private

Definition at line 84 of file SkyManager.h.

const wchar_t * SkyManager::s_imageNames
staticprivate
Initial value:
= {
L"front",
L"back",
L"right",
L"left",
L"top"
}

Definition at line 89 of file SkyManager.h.


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