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

Inti::Gdk::GL::Window Class Reference

A GdkGLWindow C++ wrapper class. More...

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

Inheritance diagram for Inti::Gdk::GL::Window:

Inti::Gdk::GL::Drawable List of all members.

Public Member Functions

Constructors
Accessors
Methods

Static Public Member Functions

Protected Member Functions

Constructors

Detailed Description

A GdkGLWindow C++ wrapper class.

Window represents an OpenGL window which is located on-screen.


Constructor & Destructor Documentation

Inti::Gdk::GL::Window::Window GdkGLWindow *  window,
bool  reference = true
[explicit, protected]
 

Construct a new Window from an existing GdkGLWindow.

Parameters:
window A pointer to a GdkGLWindow.
reference Set false if the initial reference count is floating, set true if it's not.

The window can be a newly created GdkGLWindow or an existing GdkGLWindow. (see G::Object::Object).


Member Function Documentation

Pointer<Window> Inti::Gdk::GL::Window::create const Config glconfig,
const Gdk::Window &  window,
const int *  attrib_list = 0
[static]
 

Creates an on-screen rendering area.

Parameters:
glconfig A Gdk::GL::Config.
window The Gdk::Window to be used as the rendering area.
attrib_list This must be set to null or empty (first attribute of none).
Returns:
The new Gdk::GL::Window.

The attrib_list argument is currently unused. This must be set to null or empty (first attribute of none, see GLX 1.3 spec).

Gdk::GL::Drawable* Inti::Gdk::GL::Window::get_gl_drawable Gdk::Window &  window  )  [static]
 

Gets the Gdk::GL::Drawable held by the window.

Parameters:
window A Gdk::GL::Window.
Returns:
The Gdk::GL::Drawable.

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

Window* Inti::Gdk::GL::Window::get_gl_window Gdk::Window &  window  )  [static]
 

Gets the Gdk:GL::Window held by window.

Parameters:
window A Gdk::Window.
Returns:
The Gdk::GL::Window.

Gdk::Window* Inti::Gdk::GL::Window::get_window  )  const
 

Gets the Gdk::Window associated with the window.

Returns:
The Gdk::Window associated with the window.

Notice that Gdk::GL::Window is not Gdk::Window, but another Gdk::Drawable which has an associated Gdk::Window.

bool Inti::Gdk::GL::Window::is_gl_capable Gdk::Window &  window  )  [static]
 

Determines whether the window is OpenGL-capable.

Parameters:
window A Gdk::Window.
Returns:
true if the window is OpenGL-capable, false otherwise.

Pointer<Window> Inti::Gdk::GL::Window::set_gl_capability Gdk::Window &  window,
const Config glconfig,
const int *  attrib_list = 0
[static]
 

Set the OpenGL-capability for window.

Parameters:
window The Gdk::Window to be used as the rendering area.
glconfig A Gdk::GL::Config.
attrib_list This must be set to null or empty (a first attribute of none).
Returns:
The Gdk::GL::Window used by the window if it is successful, null otherwise.

This method creates a new Gdk::GL::Window held by window. The attrib_list argument is currently unused. This must be set to null or empty (a first attribute of none).

void Inti::Gdk::GL::Window::unset_gl_capability Gdk::Window &  window  )  [static]
 

Unset the OpenGL-capability for window.

Parameters:
window The Gdk::Window that was used as the rendering area.

This method destroys the Gdk::GL::Window held by the window.


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