#include <LandSurround.h>
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] |
Definition at line 26 of file LandSurround.h.
| LandSurround::LandSurround | ( | ) |
Definition at line 33 of file LandSurround.cpp.
| LandSurround::~LandSurround | ( | ) | [virtual] |
Definition at line 39 of file LandSurround.cpp.
| 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().
unsigned int LandSurround::listNo_ [protected] |
Vector LandSurround::hMapBoxVerts_[16] [protected] |
1.5.3