Stellarium 0.12.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure

StelQGLIndexBuffer Class Reference

Qt-OpenGL index buffer implementation. More...

#include <StelQGLIndexBuffer.hpp>

List of all members.

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.

Detailed Description

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).

Note:
This is an internal class of the Renderer subsystem and should not be used elsewhere.

Definition at line 37 of file StelQGLIndexBuffer.hpp.


Member Function Documentation

virtual void StelQGLIndexBuffer::addIndex_ ( const uint  index  )  [inline, protected, virtual]

Implementation of addIndex.

See also:
addIndex

Implements StelIndexBuffer.

Definition at line 68 of file StelQGLIndexBuffer.hpp.

virtual void StelQGLIndexBuffer::clear_ (  )  [inline, protected, virtual]

Implementation of clear.

See also:
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.

See also:
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.

See also:
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.

See also:
setIndex

Implements StelIndexBuffer.

Definition at line 98 of file StelQGLIndexBuffer.hpp.

virtual void StelQGLIndexBuffer::unlock_ (  )  [inline, protected, virtual]

Implementation of unlock.

See also:
unlock

Implements StelIndexBuffer.

Definition at line 110 of file StelQGLIndexBuffer.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Jan 31 14:05:46 2013 for Stellarium by  doxygen 1.6.3