#include <QGLViewerSceneTreeObjects.h>
Inheritance diagram for STDisplayList:
Public Member Functions | |
STDisplayList (GLuint nDispList, QRgb rgba=qRgba(255, 255, 255, 255)) | |
~STDisplayList () | |
virtual void | draw () |
QRgb | getRGBA () |
void | setRGBA (QRgb qRgba) |
Private Attributes | |
GLuint | m_nDispList |
QRgb | m_qRgba |
STDisplayList::STDisplayList | ( | GLuint | nDispList, | |
QRgb | rgba = qRgba(255,255,255,255) | |||
) | [inline] |
Constructor.
'nDisplist' is the value, that is returned by the OpenGL call 'glGenLists(...)'. The color given by 'qRgba' is set before the display list is drawn. It defines the ambient and diffuse part of lighting calculations. But the color could change if you change it inside the display list.
STDisplayList::~STDisplayList | ( | ) |
Destructor.
void STDisplayList::draw | ( | ) | [virtual] |
Implementation of the inherited method. It renders the display list to the current OpenGL context.
Implements GLDrawable.
QRgb STDisplayList::getRGBA | ( | ) | [inline] |
Returns the current color.
void STDisplayList::setRGBA | ( | QRgb | qRgba | ) | [inline] |
Sets the color.
GLuint STDisplayList::m_nDispList [private] |
QRgb STDisplayList::m_qRgba [private] |