Hemisphere Class Reference

#include <Hemisphere.h>

List of all members.

Public Types

enum  Flags { eWidthTexture = 1 }

Static Public Member Functions

static void draw (float radius, float radius2, int heightSlices=10, int rotationSlices=20, int startHeightSlice=0, int startRotationSlice=0, int endHeightSlice=10, int endRotationSlice=10, bool inverse=false, unsigned int flags=0)
static void drawColored (float radius, float radius2, int heightSlices, int rotationSlices, int startHeightSlice, int startRotationSlice, int endHeightSlice, int endRotationSlice, bool inverse, Image &colors, Vector &sunDir, int daytime, bool horizonGlow)

Private Member Functions

 Hemisphere ()
virtual ~Hemisphere ()


Detailed Description

Definition at line 26 of file Hemisphere.h.


Member Enumeration Documentation

enum Hemisphere::Flags

Enumerator:
eWidthTexture 

Definition at line 29 of file Hemisphere.h.


Constructor & Destructor Documentation

Hemisphere::Hemisphere (  )  [private]

virtual Hemisphere::~Hemisphere (  )  [private, virtual]


Member Function Documentation

void Hemisphere::draw ( float  radius,
float  radius2,
int  heightSlices = 10,
int  rotationSlices = 20,
int  startHeightSlice = 0,
int  startRotationSlice = 0,
int  endHeightSlice = 10,
int  endRotationSlice = 10,
bool  inverse = false,
unsigned int  flags = 0 
) [static]

Definition at line 29 of file Hemisphere.cpp.

References eWidthTexture, GL_QUAD_STRIP, glBegin(), glEnd(), glTexCoord2f(), glVertex3fv(), HALFPI, p1, p2, and TWOPI.

Referenced by LargeHemisphere::draw(), and TargetRendererImpl::drawShield().

void Hemisphere::drawColored ( float  radius,
float  radius2,
int  heightSlices,
int  rotationSlices,
int  startHeightSlice,
int  startRotationSlice,
int  endHeightSlice,
int  endRotationSlice,
bool  inverse,
Image colors,
Vector sunDir,
int  daytime,
bool  horizonGlow 
) [static]

Definition at line 92 of file Hemisphere.cpp.

References DIALOG_ASSERT, Vector::dotP(), Image::getBits(), Image::getComponents(), Image::getHeight(), Image::getWidth(), GL_QUAD_STRIP, glBegin(), glColor3fv(), glEnd(), glVertex3fv(), HALFPI, int(), MAX, MIN, Vector::Normalize(), p1, p2, and TWOPI.

Referenced by LargeHemisphere::drawColored().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:03 2009 for Scorched3D by  doxygen 1.5.3