Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

STDisplayList Class Reference

#include <QGLViewerSceneTreeObjects.h>

Inheritance diagram for STDisplayList:

QSceneTreeDrawable QSceneTreeNode GLDrawable CTreeNode List of all members.

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

Detailed Description

Node that manages a OpenGl display list.

Author:
Markus Janich


Constructor & Destructor Documentation

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.

NOTE: Don't free the display list by using
'glDeleteLists(...)', because this is already done by the destructor !

STDisplayList::~STDisplayList  ) 
 

Destructor.


Member Function Documentation

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.


Member Data Documentation

GLuint STDisplayList::m_nDispList [private]
 

QRgb STDisplayList::m_qRgba [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Aug 13 17:43:13 2004 for QGLViewer by doxygen 1.3.7