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

A GdkGLContext C++ wrapper class. More...

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

List of all members.

Public Member Functions

Constructors
Accessors
Methods

Static Public Member Functions

Protected Member Functions

Constructors

Detailed Description

A GdkGLContext C++ wrapper class.


Constructor & Destructor Documentation

Inti::Gdk::GL::Context::Context GdkGLContext *  context,
bool  reference = true
[explicit, protected]
 

Construct a new Context from an existing GdkGLContext.

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

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


Member Function Documentation

bool Inti::Gdk::GL::Context::copy const Context src,
unsigned long  mask = GL_ALL_ATTRIB_BITS
 

Copy one or more state bits from src to this context.

Parameters:
src The source context.
mask The bitwise-OR of the same symbolic names that are passed to glPushAttrib().
Returns:
true if successful, false otherwise.

You can use GL_ALL_ATTRIB_BITS to copy all the rendering state information (see the "GL/gl.h" header file).

Pointer<Context> Inti::Gdk::GL::Context::create const Drawable gldrawable,
const Context share_list,
bool  direct = true,
int  render_type = GDK_GL_RGBA_TYPE
[static]
 

Creates a new OpenGL rendering context.

Parameters:
gldrawable A Gdk::GL::Drawable.
share_list The 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.

Pointer<Context> Inti::Gdk::GL::Context::create const Drawable gldrawable,
bool  direct = true,
int  render_type = GDK_GL_RGBA_TYPE
[static]
 

Creates a new OpenGL rendering context.

Parameters:
gldrawable A Gdk::GL::Drawable.
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.

No context sharing takes place with contexts created by this method.

Context* Inti::Gdk::GL::Context::get_current  )  [static]
 

Gets the current Gdk::GL::Context.

Returns:
The current Gdk::GL::Context, or null if there is no current context.

Config* Inti::Gdk::GL::Context::get_gl_config  )  const
 

Gets Gdk::GL::Config with which the context is configured.

Returns:
A pointer to the Gdk::GL::Config object.

Drawable* Inti::Gdk::GL::Context::get_gl_drawable  )  const
 

Gets Gdk::GL::Drawable to which the context is bound.

Returns:
The drawable, or null if no Gdk::GL::Drawable is bound.

int Inti::Gdk::GL::Context::get_render_type  )  const
 

Gets render_type of the context.

Returns:
GDK_GL_RGBA_TYPE or GDK_GL_COLOR_INDEX_TYPE.

Context* Inti::Gdk::GL::Context::get_share_list  )  const
 

Gets the Gdk::GL::Context with which the context shares the display lists and texture objects.

Returns:
The Gdk::GL::Context, or null if the context is not sharing.

bool Inti::Gdk::GL::Context::is_direct  )  const
 

Determines whether the context is a direct rendering context.

Returns:
true if the context is a direct rendering context.


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