#include <Water2Patch.h>
Public Member Functions | |
| Water2Patch () | |
| ~Water2Patch () | |
| void | generate (Water2Points &heights, int size, int totalSize, int posX, int posY, float waterHeight) |
| void | setBufferOffSet (int offset) |
| int | getBufferOffSet () |
| void | draw (MipMapPatchIndex &index) |
| Data * | getData (int x, int y) |
| Data * | getInternalData () |
Protected Attributes | |
| int | size_ |
| int | dataSize_ |
| int | bufferOffSet_ |
| Data * | data_ |
Classes | |
| struct | Data |
Definition at line 28 of file Water2Patch.h.
| Water2Patch::Water2Patch | ( | ) |
Definition at line 30 of file Water2Patch.cpp.
| Water2Patch::~Water2Patch | ( | ) |
| void Water2Patch::generate | ( | Water2Points & | heights, | |
| int | size, | |||
| int | totalSize, | |||
| int | posX, | |||
| int | posY, | |||
| float | waterHeight | |||
| ) |
Definition at line 62 of file Water2Patch.cpp.
References data_, dataSize_, getPosition(), Water2Patch::Data::nx, Water2Patch::Data::ny, Water2Patch::Data::nz, size_, Water2Patch::Data::x, Water2Patch::Data::y, and Water2Patch::Data::z.
Referenced by Water2Patches::generate().
| void Water2Patch::setBufferOffSet | ( | int | offset | ) | [inline] |
Definition at line 45 of file Water2Patch.h.
References bufferOffSet_.
Referenced by Water2Patches::generate().
| int Water2Patch::getBufferOffSet | ( | ) | [inline] |
Definition at line 46 of file Water2Patch.h.
References bufferOffSet_.
Referenced by VisibilityPatchGrid::drawWater().
| void Water2Patch::draw | ( | MipMapPatchIndex & | index | ) |
Definition at line 130 of file Water2Patch.cpp.
References GLInfo::addNoTriangles(), data_, DIALOG_ASSERT, MipMapPatchIndex::getBufferOffSet(), MipMapPatchIndex::getIndices(), GLStateExtension::getMaxElementIndices(), GLStateExtension::getMaxElementVertices(), MipMapPatchIndex::getMaxIndex(), MipMapPatchIndex::getMinIndex(), OptionsDisplay::getNoGLDrawElements(), MipMapPatchIndex::getSize(), GL_TRIANGLE_STRIP, GL_UNSIGNED_SHORT, glBegin(), glDrawRangeElements, glEnd(), glNormal3fv(), glVertex3fv(), GLStateExtension::hasDrawRangeElements(), OptionsDisplay::instance(), NULL, and Water2Patch::Data::x.
Referenced by VisibilityPatchGrid::drawWater().
| Water2Patch::Data * Water2Patch::getData | ( | int | x, | |
| int | y | |||
| ) |
| Data* Water2Patch::getInternalData | ( | ) | [inline] |
Definition at line 50 of file Water2Patch.h.
References data_.
Referenced by VisibilityPatchGrid::drawWater().
int Water2Patch::size_ [protected] |
int Water2Patch::dataSize_ [protected] |
int Water2Patch::bufferOffSet_ [protected] |
Definition at line 54 of file Water2Patch.h.
Referenced by getBufferOffSet(), and setBufferOffSet().
Data* Water2Patch::data_ [protected] |
Definition at line 55 of file Water2Patch.h.
Referenced by draw(), generate(), getData(), getInternalData(), and ~Water2Patch().
1.5.3