#include <MipMapPatchIndexs.h>
Public Member Functions | |
| MipMapPatchIndexs () | |
| ~MipMapPatchIndexs () | |
| MipMapPatchIndex * | getIndex (int lod, int leftLod, int rightLod, int topLod, int bottomLod, int addLod=0) |
| MipMapPatchIndex * | getIndex (int lod, int border) |
| int | getNoLevels () |
| void | generate (int size, int totalsize, unsigned int totallods=99) |
| GLVertexBufferObject * | getBufferObject () |
Protected Attributes | |
| std::vector < IndexLevel * > | levels_ |
| GLVertexBufferObject * | bufferObject_ |
Classes | |
| class | IndexLevel |
Definition at line 30 of file MipMapPatchIndexs.h.
| MipMapPatchIndexs::MipMapPatchIndexs | ( | ) |
Definition at line 41 of file MipMapPatchIndexs.cpp.
| MipMapPatchIndexs::~MipMapPatchIndexs | ( | ) |
Definition at line 46 of file MipMapPatchIndexs.cpp.
| 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().
std::vector<IndexLevel *> MipMapPatchIndexs::levels_ [protected] |
Definition at line 96 of file MipMapPatchIndexs.h.
Referenced by generate(), getIndex(), and getNoLevels().
GLVertexBufferObject* MipMapPatchIndexs::bufferObject_ [protected] |
1.5.3