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

StarImages.cpp File Reference

Implements CStarImages to render stars in the night sky. More...

#include "../Include/Globals.h"
#include "../Include/Sky.h"
#include "../Include/Utility.h"

Go to the source code of this file.

Classes

struct  SBVToRGB

Functions

static int star_predraw (ssgEntity *e)
static int star_postdraw (ssgEntity *e)
static char * getToken (const char *s, char *token, int size)
static void bv_to_rgb (float bv, float &r, float &g, float &b)

Variables

SBVToRGB bvMapping []
const int nMappings = sizeof(bvMapping) / sizeof(SBVToRGB)


Detailed Description

The design and implementation of these classes is based heavily on the sky model of SimGear 0.3.3, by Curtis Olson. Integration into the Fly! Legacy project necessitated a rewrite of the actual classes, but I am indebteded to Curt and other contributors to the SimGear and FlightGear teams for their prior work in this area.

Definition in file StarImages.cpp.


Function Documentation

static void bv_to_rgb float  bv,
float &  r,
float &  g,
float &  b
[static]
 

Definition at line 457 of file StarImages.cpp.

References SBVToRGB::b, SBVToRGB::g, nMappings, and SBVToRGB::r.

Referenced by CStarImages::CStarImages().

static char* getToken const char *  s,
char *  token,
int  size
[static]
 

Definition at line 71 of file StarImages.cpp.

Referenced by CStarImages::LoadFlyDatabase().

static int star_postdraw ssgEntity *  e  )  [static]
 

Definition at line 62 of file StarImages.cpp.

Referenced by CStarImages::CStarImages().

static int star_predraw ssgEntity *  e  )  [static]
 

Definition at line 45 of file StarImages.cpp.

Referenced by CStarImages::CStarImages().


Variable Documentation

SBVToRGB bvMapping[]
 

Definition at line 402 of file StarImages.cpp.

const int nMappings = sizeof(bvMapping) / sizeof(SBVToRGB)
 

Definition at line 455 of file StarImages.cpp.

Referenced by bv_to_rgb().

SourceForge.net Logo Documentation generated by doxygen