golib  0.5
goGUI::GLWidget Class Reference

OpenGL widget. More...

#include <glwidget.h>

Public Member Functions

void GLWidgetBegin ()
 
void GLWidgetEnd ()
 
void swapBuffers ()
 Can only be called between GLWidgetBegin and ...End.
 
const goVectorfgetRotationStart () const
 2-Vector, mouse position last rotation start More...
 
const goVectorfgetRotationEnd () 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)
 

Detailed Description

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).

Member Function Documentation

◆ getRotationEnd()

const goVectorf & goGUI::GLWidget::getRotationEnd ( ) const

2-Vector, mouse position last rotation end

Returns

◆ getRotationStart()

const goVectorf & goGUI::GLWidget::getRotationStart ( ) const

2-Vector, mouse position last rotation start

Returns

The documentation for this class was generated from the following files: