#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 |
|
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.
|
|
Destructor. |
|
Implementation of the inherited method. It renders the display list to the current OpenGL context. Implements GLDrawable. |
|
Returns the current color. |
|
Sets the color. |
|
|
|
|