#include <ClearCanvasGL.h>
This class is part of the OpenGLTools namespace which is actually a subnamespace of the main namespace Tools.
To integrate a correct deletion method in OpenGL to the application's canvas which is implemented in the class OpenGLCanvas use only the class.
As every other class of the subpackage OpenGLTools this class has the base class OpenGLCode of the CSOpenGL library to correctly implement the OpenGL code Which will be handled by the OpenGLPanel which will show the specific drawing results on the screen.
The main task of this class is the deletion of the current canvas and reset it to the background color.
Public Member Functions | |
ClearCanvasGL (void) | |
This is the standard constructor. | |
virtual void | Init (void) |
This function overwrites the base init funtion of the class OpenGLCode. | |
virtual void | Draw (void) |
This function overwrites the base draw funtion of the class OpenGLCode. | |
__property void | set_CanvasBackColor (Color n_CanvasBackColor) |
Sets a new background color for the canvas. | |
Private Attributes | |
float m_CanvasBackColor | __gc [] |
Saves the current background color of the canvas. |
|
This is the standard constructor. All member variables of this new instance will be set to zero/null. |
|
This function overwrites the base draw funtion of the class OpenGLCode. It contains the actual drawing code in OpenGL and also performs the code. |
|
This function overwrites the base init funtion of the class OpenGLCode. It contains the actual initialization code in OpenGL and also performs the code. |
|
Sets a new background color for the canvas.
|