golib
0.5
|
OpenGL widget. More...
#include <glwidget.h>
Public Member Functions | |
void | GLWidgetBegin () |
void | GLWidgetEnd () |
void | swapBuffers () |
Can only be called between GLWidgetBegin and ...End. | |
const goVectorf & | getRotationStart () const |
2-Vector, mouse position last rotation start More... | |
const goVectorf & | getRotationEnd () const |
2-Vector, mouse position last rotation end More... | |
virtual void | glDraw () |
bool | renderSlot (const Glib::RefPtr< Gdk::GLContext > &context) |
bool | exposeSlot (GdkEventExpose *e) |
bool | motionSlot (GdkEventMotion *e) |
bool | buttonSlot (GdkEventButton *e) |
OpenGL widget.
Derives from Gtk::DrawingArea. The GL capabilities are added using the gdkgl extension library. When using GL commands, always use them between calls to GLWidgetBegin
and GLWidgetEnd
. Use swapBuffers
to swap buffers.
When deriving from GLWidget
, implement glDraw()
to contain any drawing routines (such as drawing opengl scenes).
const goVectorf & goGUI::GLWidget::getRotationEnd | ( | ) | const |
2-Vector, mouse position last rotation end
const goVectorf & goGUI::GLWidget::getRotationStart | ( | ) | const |
2-Vector, mouse position last rotation start