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::Widget Class Reference

A C++ wrapper interface for the GtkGLExt widget functions. More...

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

Inheritance diagram for Inti::Gtk::GL::Widget:

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

Public Member Functions

Constructors
Accessors
Methods

Detailed Description

A C++ wrapper interface for the GtkGLExt widget functions.

Widget in an interface class that provides an OpenGL extension to Gtk::Widget API.


Member Function Documentation

Pointer<Gdk::GL::Context> Inti::Gtk::GL::Widget::create_gl_context const Gdk::GL::Context share_list,
bool  direct = true,
int  render_type = GDK_GL_RGBA_TYPE
 

Creates a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

Parameters:
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.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
The new Context, or null if an error occurs.

See also get_gl_context().

Pointer<Gdk::GL::Context> Inti::Gtk::GL::Widget::create_gl_context bool  direct = true,
int  render_type = GDK_GL_RGBA_TYPE
 

Creates a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

Parameters:
direct Whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
The new Context, or null if an error occurs.

See also get_gl_context().

Gdk::GL::Config* Inti::Gtk::GL::Widget::get_gl_config  )  const
 

Gets the Gdk::GL::Config referred to by the widget.

Returns:
The Gdk::GL::Config.

Gdk::GL::Context* Inti::Gtk::GL::Widget::get_gl_context  )  const
 

Gets the Gdk::GL::Context with the appropriate Gdk::GL::Drawable for the widget.

Returns:
The Gdk::GL::Context.

A Gdk::GL::Context is needed for the method Gdk::GL::Drawable::begin, or for sharing display lists (see set_gl_capability()).

Gdk::GL::Drawable* Inti::Gtk::GL::Widget::get_gl_drawable  )  const
 

Gets the Gdk::GL::Drawable owned by the widget.

Returns:
The Gdk::GL::Drawable.

This method returns the result of get_gl_window() cast to a Gdk::GL::Drawable.

Gdk::GL::Window* Inti::Gtk::GL::Widget::get_gl_window  )  const
 

Gets the Gdk::GL::Window owned by the widget.

Returns:
The Gdk::GL::Window.

bool Inti::Gtk::GL::Widget::is_gl_capable  )  const
 

Determines whether the widget is OpenGL-capable.

Returns:
true if the widget is OpenGL-capable, false otherwise.

bool Inti::Gtk::GL::Widget::set_gl_capability const Gdk::GL::Config glconfig,
const Gdk::GL::Context share_list,
bool  direct = true,
int  render_type = GDK_GL_RGBA_TYPE
 

Sets the OpenGL-capability for the widget.

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.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
true if it is successful, false otherwise.

This method prepares the widget for its use with OpenGL.

bool Inti::Gtk::GL::Widget::set_gl_capability const Gdk::GL::Config glconfig,
bool  direct = true,
int  render_type = GDK_GL_RGBA_TYPE
 

Sets the OpenGL-capability for the widget.

Parameters:
glconfig A Gdk::GL::Config.
direct Whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
true if it is successful, false otherwise.

This method prepares the widget for its use with OpenGL. No sharing of display lists and texture objects takes place when you call this method.


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


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