Public Member Functions | |
GLView (GLDocument *pDoc) | |
Constructor. | |
virtual | ~GLView () |
Destructor. | |
GtkWidget * | GetWidget () |
void | Init () |
void | Reshape () |
void | Draw () |
bool | OnPressed (GdkEventButton *event) |
void | OnMotion (GdkEventMotion *event) |
void | Update () |
Protected Attributes | |
GtkWidget * | m_pWidget |
unsigned | m_nGLList |
Definition at line 39 of file glview.h.
gcu::GLView::GLView | ( | GLDocument * | pDoc | ) |
Constructor.
pDoc,: | a pointer to the GLDocument instance. |
virtual gcu::GLView::~GLView | ( | ) | [virtual] |
Destructor.
The destructor of GLView.
void gcu::GLView::Draw | ( | ) |
Draws the contents of the associated widget. Automatically called by the framework.
void gcu::GLView::Init | ( | ) |
Initialize the associated widget. Automatically called by the framework.
void gcu::GLView::OnMotion | ( | GdkEventMotion * | event | ) |
event,: | a pointer to a GdkEvent. |
bool gcu::GLView::OnPressed | ( | GdkEventButton * | event | ) |
event,: | a pointer to a GdkEvent. |
void gcu::GLView::Reshape | ( | ) |
Automatically called by the framework when the associated widget size changes.
void gcu::GLView::Update | ( | ) |
Update the contents of the associated widget. This method must be called each time the document or the view are modified.