Construct a simple DrawingArea and sets the GLCapabilities
This method is called every time the window must be paint or repaint This is where you put the OpenGL call to draw something. This method call be called directly by the application without an event object to force redrawing of the scene. returns true to consume the event
put any gl initializations here returns true to consume the event
This method is called when the window is resized returns true to consume the event
need to include the mixin to add GL capabilities to this widget
Sets the GL capabilities for the widget
Set the GL capabilities for the widget
The widget should use this method to redraw it self at any time
The application should use this method to redraw the scene at any time
the main Gtk struct
the main Gtk struct as a void*
Warning gtk_drawing_area_size is deprecated and should not be used in newly-written code. Use gtk_widget_set_size_request() instead. Sets the size that the drawing area will request in response to a "size_request" signal. The drawing area may actually be allocated a size larger than this depending on how it is packed within the enclosing containers.
This is a Simple class extending the DrawingArea widget. A really simple Demo illustrating OpenGL with DUI It uses the new GLCapability mixin to add the GL capabilities to the widget. This example is provided under the terms of the GPL License. Note the initialization of the GLCapabilities on the constructor.
@author pac@tuxfamily.org