Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

Inti::Gtk::GL::DrawingArea Class Reference

An Open-GL capable drawing area widget. More...

#include <inti/gdk/gl/drawingarea.h>

Inheritance diagram for Inti::Gtk::GL::DrawingArea:

Inti::Gtk::GL::Widget List of all members.

Public Member Functions

Constructors
Accessors
Methods

Detailed Description

An Open-GL capable drawing area widget.

DrawingArea is a convenience class that sets up an Open-GL capable drawing area.


Constructor & Destructor Documentation

Inti::Gtk::GL::DrawingArea::DrawingArea  ) 
 

Construct a new DrawingArea that can render Open-GL graphics.

To make the drawing area Open-GL capable you must call set_gl_capability().

Inti::Gtk::GL::DrawingArea::DrawingArea const Gdk::GL::Config glconfig,
bool  direct = true
 

Construct a new Open-GL capable DrawingArea.

Parameters:
glconfig A Gdk::GL::Config.
direct Whether rendering is to be done with a direct connection to the graphics system.

This constructor prepares the drawing area for its use with OpenGL. No sharing of display lists and texture objects takes place when you call this constructor, and the render type is set to Gdk::GL::RGBA_TYPE.

Inti::Gtk::GL::DrawingArea::DrawingArea const Gdk::GL::Config glconfig,
int  width,
int  height,
bool  direct = true
 

Construct a new Open-GL capable DrawingArea with the specified width and height.

Parameters:
glconfig A Gdk::GL::Config.
width The width to request.
height The height to request.
direct Whether rendering is to be done with a direct connection to the graphics system.

This constructor prepares the drawing area for its use with OpenGL. No sharing of display lists and texture objects takes place when you call this constructor, and the render type is set to Gdk::GL::RGBA_TYPE.

Inti::Gtk::GL::DrawingArea::DrawingArea const Gdk::GL::Config glconfig,
const Gdk::GL::Context share_list,
bool  direct = true
 

Construct a new Open-GL capable DrawingArea.

Parameters:
glconfig A Gdk::GL::Config.
share_list The Gdk::GL::Context with which to share display lists and texture objects.
direct Whether rendering is to be done with a direct connection to the graphics system.

This method prepares the widget for its use with OpenGL. The render type is set to Gdk::GL::RGBA_TYPE.

Inti::Gtk::GL::DrawingArea::DrawingArea const Gdk::GL::Config glconfig,
const Gdk::GL::Context share_list,
int  width,
int  height,
bool  direct = true
 

Construct a new Open-GL capable DrawingArea.

Parameters:
glconfig A Gdk::GL::Config.
share_list The Gdk::GL::Context with which to share display lists and texture objects.
width The width to request.
height The height to request.
direct Whether rendering is to be done with a direct connection to the graphics system.

This method prepares the widget for its use with OpenGL. The render type is set to Gdk::GL::RGBA_TYPE.


Member Function Documentation

bool Inti::Gtk::GL::DrawingArea::gl_begin  ) 
 

Delimits the begining of the OpenGL execution.

Returns:
true if it is successful, false otherwise.

This is a convenience method that retrieves a pointer to the drawing area's drawable, and then calls Gdk::GL::Drawable::gl_begin().

void Inti::Gtk::GL::DrawingArea::gl_end  ) 
 

Delimits the end of the OpenGL execution.

This is a convenience method that retrieves a pointer to the drawing area's drawable, and then calls Gdk::GL::Drawable::gl_end().

bool Inti::Gtk::GL::DrawingArea::is_double_buffered  )  const
 

Determines whether the drawable supports the double-buffered visual.

Returns:
true if the double-buffered visual is supported, false otherwise.

This is a convenience method that retrieves a pointer to the drawing area's drawable, and then calls Gdk::GL::Drawable::is_double_buffered().

void Inti::Gtk::GL::DrawingArea::swap_buffers  ) 
 

Exchange the front and back buffers.

This is a convenience method that retrieves a pointer to the drawing area's drawable, and then calls Gdk::GL::Drawable::swap_buffers().


The documentation for this class was generated from the following file: Main Page - Footer


Generated on Sun Sep 14 20:59:26 2003 for Inti-GL by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002