GLC_Lod is a Level of detail index and accuracy. More...
#include <glc_lod.h>
Public Member Functions | |
Constructor / Destructor | |
| GLC_Lod () | |
| Default Constructor. | |
| GLC_Lod (double accuracy) | |
| Construct a Lod with the specified accuracy. | |
| GLC_Lod (const GLC_Lod &) | |
| Copy constructor. | |
| GLC_Lod & | operator= (const GLC_Lod &) |
| Overload "=" operator. | |
| virtual | ~GLC_Lod () |
| Destructor. | |
Set Functions | |
| void | finishVbo () |
| The mesh wich use this lod is finished. | |
| void | setAccuracy (const double &accuracy) |
| Set accuracy of the LOD. | |
OpenGL Functions | |
| void | createIBO () |
| IBO creation. | |
| void | useIBO () |
| Ibo Usage. | |
Private Attributes | |
| double | m_Accuracy |
| The accuracy of the LOD. | |
| GLuint | m_IboId |
| The IBO ID. | |
| QVector< GLuint > | m_IndexVector |
| The Index Vector. | |
| int | m_IndexSize |
| The Index vector size. | |
Static Private Attributes | |
| static quint32 | m_ChunkId = 0xA708 |
| Class chunk id. | |
Friends | |
| QDataStream & | operator<< (QDataStream &, const GLC_Lod &) |
| Non-member stream operator. | |
| QDataStream & | operator>> (QDataStream &, GLC_Lod &) |
Get Functions | |
|
| |
| double | accuracy () const |
| Return the accuracy of the LOD. | |
| QVector< GLuint > | indexVector () const |
| Return The unique index Vector which contains :. | |
| QVector< GLuint > * | indexVectorHandle () |
| Return The unique index Vector handle which contains :. | |
| int | indexVectorSize () const |
| Return the size of the index Vector. | |
| static quint32 | chunckID () |
| Return the class Chunk ID. | |
GLC_Lod is a Level of detail index and accuracy.
Definition at line 39 of file glc_lod.h.
| GLC_Lod::GLC_Lod | ( | ) |
Default Constructor.
Definition at line 34 of file glc_lod.cpp.
| GLC_Lod::GLC_Lod | ( | double | accuracy | ) |
Construct a Lod with the specified accuracy.
Definition at line 44 of file glc_lod.cpp.
| GLC_Lod::GLC_Lod | ( | const GLC_Lod & | lod | ) |
Copy constructor.
Definition at line 54 of file glc_lod.cpp.
| GLC_Lod::~GLC_Lod | ( | ) | [virtual] |
| double GLC_Lod::accuracy | ( | ) | const [inline] |
| quint32 GLC_Lod::chunckID | ( | ) | [static] |
| void GLC_Lod::createIBO | ( | ) | [inline] |
| void GLC_Lod::finishVbo | ( | ) | [inline] |
| QVector< GLuint > GLC_Lod::indexVector | ( | ) | const |
Return The unique index Vector which contains :.
Definition at line 97 of file glc_lod.cpp.
References glBindBuffer, glMapBuffer, glUnmapBuffer, m_IboId, m_IndexSize, and m_IndexVector.
Referenced by operator<<(), and operator=().
| QVector<GLuint>* GLC_Lod::indexVectorHandle | ( | ) | [inline] |
Return The unique index Vector handle which contains :.
Definition at line 92 of file glc_lod.h.
Referenced by operator>>().
| int GLC_Lod::indexVectorSize | ( | ) | const [inline] |
Overload "=" operator.
Definition at line 65 of file glc_lod.cpp.
References indexVector(), m_Accuracy, m_IboId, m_IndexSize, and m_IndexVector.
| void GLC_Lod::setAccuracy | ( | const double & | accuracy | ) | [inline] |
| void GLC_Lod::useIBO | ( | ) | [inline] |
| QDataStream& operator<< | ( | QDataStream & | , | |
| const GLC_Lod & | ||||
| ) | [friend] |
Non-member stream operator.
Definition at line 120 of file glc_lod.cpp.
| QDataStream& operator>> | ( | QDataStream & | , | |
| GLC_Lod & | ||||
| ) | [friend] |
Definition at line 130 of file glc_lod.cpp.
double GLC_Lod::m_Accuracy [private] |
The accuracy of the LOD.
Definition at line 144 of file glc_lod.h.
Referenced by operator<<(), operator=(), and operator>>().
quint32 GLC_Lod::m_ChunkId = 0xA708 [static, private] |
Class chunk id.
Definition at line 156 of file glc_lod.h.
Referenced by chunckID(), operator<<(), and operator>>().
GLuint GLC_Lod::m_IboId [private] |
The IBO ID.
Definition at line 147 of file glc_lod.h.
Referenced by indexVector(), operator=(), and ~GLC_Lod().
int GLC_Lod::m_IndexSize [private] |
The Index vector size.
Definition at line 153 of file glc_lod.h.
Referenced by indexVector(), and operator=().
QVector<GLuint> GLC_Lod::m_IndexVector [private] |
The Index Vector.
Definition at line 150 of file glc_lod.h.
Referenced by indexVector(), and operator=().