Pyrogenesis  trunk
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.

Member Enumeration Documentation

anonymous enum
private
Enumerator
FRONT 
BACK 
RIGHT 
LEFT 
TOP 
numTextures 

Constructor & Destructor Documentation

SkyManager::SkyManager ( )

Member Function Documentation

GLuint SkyManager::GetSkyCube ( )
inline
const CStrW& SkyManager::GetSkySet ( ) const
inline

GetSkySet(): Return the currently selected sky set name.

std::vector< CStrW > SkyManager::GetSkySets ( ) const

Return a sorted list of available sky sets, in a form suitable for passing to SetSkySet.

void SkyManager::LoadSkyTextures ( )
private
void SkyManager::RenderSky ( )

RenderSky: Render the sky.

void SkyManager::SetSkySet ( const CStrW &  name)

GetSkySet(): Set the sky set name, potentially loading the textures.

Member Data Documentation

float SkyManager::m_HorizonHeight
bool SkyManager::m_RenderSky
GLuint SkyManager::m_SkyCubeMap
private
CStrW SkyManager::m_SkySet
private

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

CTexturePtr SkyManager::m_SkyTexture[numTextures]
private
const wchar_t * SkyManager::s_imageNames
staticprivate
Initial value:
= {
L"front",
L"back",
L"right",
L"left",
L"top"
}

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