![]() |
Stellarium 0.12.0 | ||
| Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure |
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. | |
| uint | maxIndex () const |
| Get the greatest index value. | |
Protected Member Functions | |
| virtual void | addIndex_ (const uint index) |
| Implementation of addIndex. | |
| virtual uint | getIndex_ (const int which) const |
| Implementation of getIndex. | |
| virtual void | setIndex_ (const int which, const uint index) |
| Implementation of setIndex. | |
| virtual void | clear_ () |
| Implementation of clear. | |
| virtual void | lock_ () |
| Implementation of lock. | |
| virtual void | unlock_ () |
| Implementation of unlock. | |
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.
| virtual void StelQGLIndexBuffer::addIndex_ | ( | const uint | index | ) | [inline, protected, virtual] |
Implementation of addIndex.
Implements StelIndexBuffer.
Definition at line 68 of file StelQGLIndexBuffer.hpp.
| virtual void StelQGLIndexBuffer::clear_ | ( | ) | [inline, protected, virtual] |
Implementation of clear.
Implements StelIndexBuffer.
Definition at line 106 of file StelQGLIndexBuffer.hpp.
| virtual uint StelQGLIndexBuffer::getIndex_ | ( | const int | which | ) | const [inline, protected, virtual] |
Implementation of getIndex.
Implements StelIndexBuffer.
Definition at line 89 of file StelQGLIndexBuffer.hpp.
| const GLvoid* StelQGLIndexBuffer::indices | ( | ) | const [inline] |
Get a raw pointer to index data for OpenGL.
Definition at line 49 of file StelQGLIndexBuffer.hpp.
| virtual void StelQGLIndexBuffer::lock_ | ( | ) | [inline, protected, virtual] |
Implementation of lock.
Implements StelIndexBuffer.
Definition at line 109 of file StelQGLIndexBuffer.hpp.
| uint StelQGLIndexBuffer::maxIndex | ( | ) | const [inline] |
Get the greatest index value.
Definition at line 61 of file StelQGLIndexBuffer.hpp.
| virtual void StelQGLIndexBuffer::setIndex_ | ( | const int | which, | |
| const uint | index | |||
| ) | [inline, protected, virtual] |
Implementation of setIndex.
Implements StelIndexBuffer.
Definition at line 98 of file StelQGLIndexBuffer.hpp.
| virtual void StelQGLIndexBuffer::unlock_ | ( | ) | [inline, protected, virtual] |
Implementation of unlock.
Implements StelIndexBuffer.
Definition at line 110 of file StelQGLIndexBuffer.hpp.
1.6.3