LandSurround Class Reference

#include <LandSurround.h>

List of all members.

Public Member Functions

 LandSurround ()
virtual ~LandSurround ()
void draw (HeightMap &map, bool detail, bool lightMap)
void generate ()

Protected Member Functions

void generateList (HeightMap &map, bool detail, bool lightMap)
void generateVerts (HeightMap &map)

Protected Attributes

unsigned int listNo_
Vector hMapBoxVerts_ [16]


Detailed Description

Definition at line 26 of file LandSurround.h.


Constructor & Destructor Documentation

LandSurround::LandSurround (  ) 

Definition at line 33 of file LandSurround.cpp.

LandSurround::~LandSurround (  )  [virtual]

Definition at line 39 of file LandSurround.cpp.


Member Function Documentation

void LandSurround::draw ( HeightMap map,
bool  detail,
bool  lightMap 
)

Definition at line 44 of file LandSurround.cpp.

References GLInfo::addNoTriangles(), generateList(), GL_COMPILE, glCallList(), glEndList(), glGenLists(), glNewList(), and listNo_.

Referenced by VisibilityPatchGrid::drawSurround().

void LandSurround::generate (  ) 

Definition at line 58 of file LandSurround.cpp.

References glDeleteLists(), and listNo_.

Referenced by VisibilityPatchGrid::generate().

void LandSurround::generateList ( HeightMap map,
bool  detail,
bool  lightMap 
) [protected]

Definition at line 94 of file LandSurround.cpp.

References Vector::dotP(), generateVerts(), LandscapeMaps::getDefinitions(), getHeight(), ScorchedContext::getLandscapeMaps(), Sun::getPosition(), Landscape::getSky(), Sky::getSun(), LandscapeDefinitionCache::getTex(), GLStateExtension::getTextureUnits(), GL_QUADS, GL_TEXTURE0_ARB, GL_TEXTURE1_ARB, GL_TEXTURE2_ARB, glBegin(), glColor3f(), glColor3fv(), glEnd(), glMultiTexCoord2fARB, glNormal3f(), glVertex3fv(), GLStateExtension::hasMultiTex(), hMapBoxVerts_, Landscape::instance(), ScorchedClient::instance(), MIN, LandscapeTex::skyambience, and LandscapeTex::skydiffuse.

Referenced by draw().

void LandSurround::generateVerts ( HeightMap map  )  [protected]

Definition at line 64 of file LandSurround.cpp.

References HeightMap::getMapHeight(), HeightMap::getMapWidth(), and hMapBoxVerts_.

Referenced by generateList().


Member Data Documentation

unsigned int LandSurround::listNo_ [protected]

Definition at line 36 of file LandSurround.h.

Referenced by draw(), and generate().

Vector LandSurround::hMapBoxVerts_[16] [protected]

Definition at line 37 of file LandSurround.h.

Referenced by generateList(), and generateVerts().


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