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 Namespace Reference

C++ framework for the GtkGLExt Open-GL extension. More...

Compounds

Intialization Methods


Detailed Description

C++ framework for the GtkGLExt Open-GL extension.

Provides the Gtk::Widget API add-ons to make Gtk::Widgets OpenGL-capable.


Function Documentation

void init int *  argc,
char ***  argv
 

Initialize the Inti-GL library.

Parameters:
argc The address of the argc parameter of your main() function.
argv The address of the argv parameter of main().

Call this method before using any other Gtk::GL functions in your applications. It will initialize everything needed to operate the library and parses some standard command line options. argc and argv are adjusted accordingly so your own code will never see those standard arguments.

Note: This method will terminate your program if it was unable to initialize the library for some reason. If you want your program to fall back to a textual interface you want to call Gtk::GL::init_check() instead. Any argv parameters understood by Gtk::GL::init() are stripped before returning and argc changed accordingly.

bool init_check int *  argc,
char ***  argv
 

Initialize the Inti-GL library.

Parameters:
argc The address of the argc parameter of your main() function.
argv The address of the argv parameter of main().
Returns:
true if the GUI has been successfully initialized, false otherwise.

This method does the same work as Gtk::GL::init() with only a single change: It does not terminate the program if the library can't be initialized. Instead it returns false on failure. This way the application can fall back to some other means of communication with the user - for example a curses or command line interface.

Any argv parameters understood by Gtk::GL::init() are stripped before returning and argc changed accordingly.

bool parse_args int *  argc,
char ***  argv
 

Parses command line arguments, and initializes global attributes of GtkGLExt.

Parameters:
argc The number of command line arguments.
argv The array of command line arguments.
Returns:
true if initialization succeeded, otherwise false.

Any arguments used by GtkGLExt are removed from the array and argc and argv are updated accordingly. You shouldn't call this function explicitely if you are using Gtk::GL::init(), or Gtk::GL::init_check().
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