Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

SkyDomeImage.cpp File Reference

Implements CSkyDomeImage to render shaded sky backdrop. More...

#include "../Include/Globals.h"
#include "../Include/Sky.h"
#include "../Include/Utility.h"
#include "../Include/Ui.h"
#include <plib/ssg.h>

Go to the source code of this file.

Functions

static int skydomeimage_predraw (ssgEntity *e)
static int skydomeimage_postdraw (ssgEntity *e)
float PerezFunction (float theta, float gamma, const SPerezCoefficients &p)
void CalcPerezCoefficients (float T, const SCoefficientParameters &parm, SPerezCoefficients &coeff)
static float ZenithLuminance (float theta, float T, const SLuminanceZenith &p)
static float ZenithChrominance (float theta, float T, const SChromaZenith &p)
static void YxyToRGB (float Y, float x, float y, float *r, float *g, float *b)
static void InitPerezParameters (SPerezParameters *p, CIniFile *inisky, const char *name)

Variables

SPerezParameters DefaultPerezParameters


Detailed Description

Definition in file SkyDomeImage.cpp.


Function Documentation

void CalcPerezCoefficients float  T,
const SCoefficientParameters parm,
SPerezCoefficients coeff
 

Definition at line 106 of file SkyDomeImage.cpp.

References SCoefficientParameters::A, SPerezCoefficients::A, SCoefficientParameters::B, SPerezCoefficients::B, SCoefficientParameters::C, SPerezCoefficients::C, SCoefficientParameters::D, SPerezCoefficients::D, SCoefficientParameters::E, and SPerezCoefficients::E.

Referenced by CSkyDomeImage::Repaint().

static void InitPerezParameters SPerezParameters p,
CIniFile inisky,
const char *  name
[static]
 

Definition at line 207 of file SkyDomeImage.cpp.

References SCoefficientParameters::A, SLuminanceZenith::A, SCoefficientParameters::B, SLuminanceZenith::B, SCoefficientParameters::C, SLuminanceZenith::C, SCoefficientParameters::D, SLuminanceZenith::D, SCoefficientParameters::E, CIniFile::Get(), SPerezParameters::name, SChromaZenith::t0, SChromaZenith::t1, SChromaZenith::t2, SPerezParameters::x_curve, SPerezParameters::x_zenith, SPerezParameters::y_curve, SPerezParameters::Y_curve, SPerezParameters::y_zenith, and SPerezParameters::Y_zenith.

Referenced by CSkyDomeImage::CSkyDomeImage().

float PerezFunction float  theta,
float  gamma,
const SPerezCoefficients p
 

Definition at line 77 of file SkyDomeImage.cpp.

References SPerezCoefficients::A, SPerezCoefficients::B, SPerezCoefficients::C, SPerezCoefficients::D, and SPerezCoefficients::E.

Referenced by CSkyDomeImage::Repaint().

static int skydomeimage_postdraw ssgEntity *  e  )  [static]
 

Definition at line 62 of file SkyDomeImage.cpp.

Referenced by CSkyDomeImage::CSkyDomeImage().

static int skydomeimage_predraw ssgEntity *  e  )  [static]
 

Definition at line 40 of file SkyDomeImage.cpp.

References globals, SGlobals::settings, and SGlobalSettings::skydomeWireframe.

Referenced by CSkyDomeImage::CSkyDomeImage().

static void YxyToRGB float  Y,
float  x,
float  y,
float *  r,
float *  g,
float *  b
[static]
 

Todo:
Allow user-provisioning of gamma level and storage in INI file

Definition at line 176 of file SkyDomeImage.cpp.

Referenced by CSkyDomeImage::Repaint().

static float ZenithChrominance float  theta,
float  T,
const SChromaZenith p
[static]
 

Definition at line 152 of file SkyDomeImage.cpp.

References SChromaZenith::t0, SChromaZenith::t1, and SChromaZenith::t2.

Referenced by CSkyDomeImage::Repaint().

static float ZenithLuminance float  theta,
float  T,
const SLuminanceZenith p
[static]
 

Definition at line 131 of file SkyDomeImage.cpp.

References SLuminanceZenith::A, SLuminanceZenith::B, SLuminanceZenith::C, and SLuminanceZenith::D.

Referenced by CSkyDomeImage::Repaint().


Variable Documentation

SPerezParameters DefaultPerezParameters
 

Definition at line 285 of file SkyDomeImage.cpp.

SourceForge.net Logo Documentation generated by doxygen