#include <Hemisphere.h>
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 () |
Definition at line 26 of file Hemisphere.h.
| enum Hemisphere::Flags |
| Hemisphere::Hemisphere | ( | ) | [private] |
| virtual Hemisphere::~Hemisphere | ( | ) | [private, virtual] |
| 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().
1.5.3