Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

renderer
Class SkyManager

   in SkyManager.h
   in SkyManager.cpp

class SkyManager

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


Field Summary
private uint cur_loading_tex
          
private static const char*[ 5 ] IMAGE_NAMES
          State of progressive loading (in # of loaded textures)
private static const int IMG_BACK
          
private static const int IMG_FRONT
          
private static const int IMG_LEFT
          
private static const int IMG_RIGHT
          
private static const int IMG_TOP
          
 float m_HorizonHeight
          
 bool m_RenderSky
          
private CStrW m_SkySet
          
private Handle[ 5 ] m_SkyTexture
          
 
Constructor Summary
SkyManager()
          
~SkyManager()
          Progressive load of sky textures
 
Method Summary
 inline const CStrW& GetSkySet() const
          GetSkySet(): Return the currently selected sky set name.
 std::vector< CStrW > GetSkySets() const
          Name of current skyset (a directory within art/textures/skies)
 int LoadSkyTextures()
          Unload sky textures
 void RenderSky()
          RenderSky: Render the sky.
 void SetSkySet( const CStrW& newSet )
          Generate list of available skies
 void UnloadSkyTextures()
          Switch to a different sky set (while the game is running)
 

Field Detail

cur_loading_tex

private uint cur_loading_tex;

IMAGE_NAMES

private static const char* IMAGE_NAMES[ 5 ];
State of progressive loading (in # of loaded textures)

IMG_BACK

private static const int IMG_BACK;

IMG_FRONT

private static const int IMG_FRONT;

IMG_LEFT

private static const int IMG_LEFT;

IMG_RIGHT

private static const int IMG_RIGHT;

IMG_TOP

private static const int IMG_TOP;

m_HorizonHeight

public float m_HorizonHeight;

m_RenderSky

public bool m_RenderSky;

m_SkySet

private CStrW m_SkySet;

m_SkyTexture

private Handle m_SkyTexture[ 5 ];


Constructor Detail

SkyManager

public SkyManager();

~SkyManager

public ~SkyManager();
Progressive load of sky textures


Method Detail

GetSkySet

public inline const CStrW& GetSkySet() const;
GetSkySet(): Return the currently selected sky set name.

GetSkySets

public std::vector< CStrW > GetSkySets() const;
Name of current skyset (a directory within art/textures/skies)

LoadSkyTextures

public int LoadSkyTextures();
Unload sky textures

RenderSky

public void RenderSky();
RenderSky: Render the sky.

SetSkySet

public void SetSkySet( const CStrW& newSet );
Generate list of available skies

UnloadSkyTextures

public void UnloadSkyTextures();
Switch to a different sky set (while the game is running)

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:14
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD