Public Member Functions | Private Member Functions

sky::SkyDomePainter Class Reference

Algorithms to paint SkyDome. More...

#include <_src_sky_sky_dome_painter.hh>

List of all members.

Public Member Functions

CLASS_METHOD void Paint (SkyDome &skyDome, const fp hour)

Private Member Functions

CLASS_METHOD void PaintDome (SkyDome &skyDome, const fp hour)
CLASS_METHOD void PaintHorizon (SkyDome &skyDome, const fp hour)
CLASS_METHOD void PaintSunAura (SkyDome &skyDome, const fp hour)
CLASS_METHOD RGBA ComputeSkyColor (const fp hour)

Detailed Description

Algorithms to paint SkyDome.

SkyDomePainter class is a collection of functions.

SkyDome vs. SkyDomePainter: --------------------------- To separate code and data (and for factoring), SkyDome is a data, while SkyDomePainter is a specific algorithm applied to data.


Member Function Documentation

RGBA sky::SkyDomePainter::ComputeSkyColor ( const fp  hour  )  [private]

Private subroutine. Compute sky color according to time-of-day.

void sky::SkyDomePainter::Paint ( SkyDome skyDome,
const fp  hour 
)

Main public method. Paint SkyDome according to time-of-day.

void sky::SkyDomePainter::PaintDome ( SkyDome skyDome,
const fp  hour 
) [private]

Private subroutine. Paint all patches with sky color.

void sky::SkyDomePainter::PaintHorizon ( SkyDome skyDome,
const fp  hour 
) [private]

Private subroutine. Paint the horizon.

void sky::SkyDomePainter::PaintSunAura ( SkyDome skyDome,
const fp  hour 
) [private]

Private subroutine. Paint the sun's aura.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:12