Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classStelQGLIndexBuffer.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:42:25 2014 Кодировка: Поисковые слова: m 103 |
Stellarium 0.12.3
|
Qt-OpenGL index buffer implementation. More...
#include <StelQGLIndexBuffer.hpp>
Public Member Functions | |
const GLvoid * | indices () const |
Get a raw pointer to index data for OpenGL. More... | |
uint | maxIndex () const |
Get the greatest index value. More... | |
Public Member Functions inherited from StelIndexBuffer | |
virtual | ~StelIndexBuffer () |
Virtual destructor. More... | |
void | addIndex (const uint index) |
Add a new index to the end of the buffer. More... | |
uint | getIndex (const int which) const |
Return index at specified position in the buffer. More... | |
void | setIndex (const int which, const uint index) |
Set specified index in the buffer. More... | |
void | clear () |
Clear the buffer, removing all indices. More... | |
void | lock () |
Lock the buffer. Must be called before drawing. More... | |
void | unlock () |
Unlock the buffer. Must be called to modify the buffer after drawing. More... | |
bool | locked () const |
Is this buffer locked? More... | |
IndexType | indexType () const |
Get type of indices (16bit or 32bit) More... | |
int | length () const |
Returns the number of indices in the buffer. More... | |
Protected Member Functions | |
virtual void | addIndex_ (const uint index) |
Implementation of addIndex. More... | |
virtual uint | getIndex_ (const int which) const |
Implementation of getIndex. More... | |
virtual void | setIndex_ (const int which, const uint index) |
Implementation of setIndex. More... | |
virtual void | clear_ () |
Implementation of clear. More... | |
virtual void | lock_ () |
Implementation of lock. More... | |
virtual void | unlock_ () |
Implementation of unlock. More... | |
Protected Member Functions inherited from StelIndexBuffer | |
StelIndexBuffer (IndexType indexType) | |
Initialize data common for all index buffer implementations. More... | |
Additional Inherited Members | |
Protected Attributes inherited from StelIndexBuffer | |
const IndexType | indexType_ |
Index type used (16 or 32 bit) More... | |
Qt-OpenGL index buffer implementation.
Currently, this is a straghtforward index array. In future, it should be replaced with a Qt3D implementation (based on QGLIndexBuffer), or with a direct VBO implementation (although we can still keep this implementation for GL1).
Definition at line 37 of file StelQGLIndexBuffer.hpp.
|
inlineprotectedvirtual |
Implementation of addIndex.
Implements StelIndexBuffer.
Definition at line 68 of file StelQGLIndexBuffer.hpp.
|
inlineprotectedvirtual |
Implementation of clear.
Implements StelIndexBuffer.
Definition at line 106 of file StelQGLIndexBuffer.hpp.
|
inlineprotectedvirtual |
Implementation of getIndex.
Implements StelIndexBuffer.
Definition at line 89 of file StelQGLIndexBuffer.hpp.
|
inline |
Get a raw pointer to index data for OpenGL.
Definition at line 49 of file StelQGLIndexBuffer.hpp.
|
inlineprotectedvirtual |
Implementation of lock.
Implements StelIndexBuffer.
Definition at line 109 of file StelQGLIndexBuffer.hpp.
|
inline |
Get the greatest index value.
Definition at line 61 of file StelQGLIndexBuffer.hpp.
|
inlineprotectedvirtual |
Implementation of setIndex.
Implements StelIndexBuffer.
Definition at line 98 of file StelQGLIndexBuffer.hpp.
|
inlineprotectedvirtual |
Implementation of unlock.
Implements StelIndexBuffer.
Definition at line 110 of file StelQGLIndexBuffer.hpp.