MipMapPatchIndexs Class Reference

#include <MipMapPatchIndexs.h>

List of all members.

Public Member Functions

 MipMapPatchIndexs ()
 ~MipMapPatchIndexs ()
MipMapPatchIndexgetIndex (int lod, int leftLod, int rightLod, int topLod, int bottomLod, int addLod=0)
MipMapPatchIndexgetIndex (int lod, int border)
int getNoLevels ()
void generate (int size, int totalsize, unsigned int totallods=99)
GLVertexBufferObjectgetBufferObject ()

Protected Attributes

std::vector
< IndexLevel * > 
levels_
GLVertexBufferObjectbufferObject_

Classes

class  IndexLevel


Detailed Description

Definition at line 30 of file MipMapPatchIndexs.h.


Constructor & Destructor Documentation

MipMapPatchIndexs::MipMapPatchIndexs (  ) 

Definition at line 41 of file MipMapPatchIndexs.cpp.

MipMapPatchIndexs::~MipMapPatchIndexs (  ) 

Definition at line 46 of file MipMapPatchIndexs.cpp.


Member Function Documentation

MipMapPatchIndex* MipMapPatchIndexs::getIndex ( int  lod,
int  leftLod,
int  rightLod,
int  topLod,
int  bottomLod,
int  addLod = 0 
) [inline]

Definition at line 47 of file MipMapPatchIndexs.h.

References getNoLevels(), and MIN.

Referenced by VisibilityPatchGrid::drawLand(), VisibilityPatchGrid::drawLandLODLevels(), and VisibilityPatchGrid::drawWater().

MipMapPatchIndex* MipMapPatchIndexs::getIndex ( int  lod,
int  border 
) [inline]

Definition at line 76 of file MipMapPatchIndexs.h.

References MipMapPatchIndexs::IndexLevel::borderIndexs_, DIALOG_ASSERT, MipMapPatchIndex::getIndices(), getNoLevels(), and levels_.

int MipMapPatchIndexs::getNoLevels (  )  [inline]

Definition at line 89 of file MipMapPatchIndexs.h.

References levels_.

Referenced by Water2::generate(), and getIndex().

void MipMapPatchIndexs::generate ( int  size,
int  totalsize,
unsigned int  totallods = 99 
)

Definition at line 50 of file MipMapPatchIndexs.cpp.

References MipMapPatchIndexs::IndexLevel::borderIndexs_, bufferObject_, S3D::formatStringBuffer(), MipMapPatchIndex::generate(), GLVertexBufferObject::get_map_size(), MipMapPatchIndex::getIndices(), MipMapPatchIndex::getSize(), GL_STATIC_DRAW, GLStateExtension::hasVBO(), GLVertexBufferObject::init_data(), GLVertexBufferObject::init_sub_data(), levels_, Logger::log(), and MipMapPatchIndex::setBufferOffSet().

Referenced by Water2::generate(), and VisibilityPatchGrid::generate().

GLVertexBufferObject* MipMapPatchIndexs::getBufferObject (  )  [inline]

Definition at line 93 of file MipMapPatchIndexs.h.

References bufferObject_.

Referenced by VisibilityPatchGrid::drawLand(), and VisibilityPatchGrid::drawWater().


Member Data Documentation

std::vector<IndexLevel *> MipMapPatchIndexs::levels_ [protected]

Definition at line 96 of file MipMapPatchIndexs.h.

Referenced by generate(), getIndex(), and getNoLevels().

GLVertexBufferObject* MipMapPatchIndexs::bufferObject_ [protected]

Definition at line 97 of file MipMapPatchIndexs.h.

Referenced by generate(), and getBufferObject().


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