Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

Gdk::GL::Context Class Reference

OpenGL rendering context. More...

#include <context.h>

List of all members.

Public Member Functions

virtual ~Context ()
GdkGLContext * gobj ()
const GdkGLContext * gobj () const
GdkGLContext * gobj_copy ()
bool copy (const Glib::RefPtr< const Context > &src, unsigned long mask=GL_ALL_ATTRIB_BITS)
 Copy state from one rendering context to another.

Glib::RefPtr< Drawableget_gl_drawable ()
 Gets Gdk::GLDrawable to which the glcontext is bound.

Glib::RefPtr< const Drawableget_gl_drawable () const
 Gets Gdk::GLDrawable to which the glcontext is bound.

Glib::RefPtr< Configget_gl_config ()
 Gets Gdk::GLConfig with which the glcontext is configured.

Glib::RefPtr< const Configget_gl_config () const
 Gets Gdk::GLConfig with which the glcontext is configured.

Glib::RefPtr< Context > get_share_list ()
 Gets Gdk::GLContext with which the glcontext shares the display lists and texture objects.

Glib::RefPtr< const Context > get_share_list () const
 Gets Gdk::GLContext with which the glcontext shares the display lists and texture objects.

bool is_direct () const
 Returns whether the glcontext is a direct rendering context.

int get_render_type () const
 Gets render_type of the glcontext .


Static Public Member Functions

Glib::RefPtr< Context > create (const Glib::RefPtr< const Drawable > &gldrawable, const Glib::RefPtr< const Context > &share_list, bool direct=true, int render_type=RGBA_TYPE)
 Create a new OpenGL rendering context.

Glib::RefPtr< Context > create (const Glib::RefPtr< const Drawable > &gldrawable, bool direct=true, int render_type=RGBA_TYPE)
 Create a new OpenGL rendering context.

Glib::RefPtr< Context > get_current ()
 Returns the current Gdk::GLContext.


Protected Member Functions

 Context (const Glib::RefPtr< const Drawable > &gldrawable, const Glib::RefPtr< const Context > &share_list, bool direct=true, int render_type=RGBA_TYPE)
 Context (const Glib::RefPtr< const Drawable > &gldrawable, bool direct=true, int render_type=RGBA_TYPE)

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gdk::GL::Context > wrap (GdkGLContext *object, bool take_copy=false)


Detailed Description

OpenGL rendering context.


Constructor & Destructor Documentation

virtual Gdk::GL::Context::~Context  )  [virtual]
 

Gdk::GL::Context::Context const Glib::RefPtr< const Drawable > &  gldrawable,
const Glib::RefPtr< const Context > &  share_list,
bool  direct = true,
int  render_type = RGBA_TYPE
[protected]
 

Gdk::GL::Context::Context const Glib::RefPtr< const Drawable > &  gldrawable,
bool  direct = true,
int  render_type = RGBA_TYPE
[explicit, protected]
 


Member Function Documentation

bool Gdk::GL::Context::copy const Glib::RefPtr< const Context > &  src,
unsigned long  mask = GL_ALL_ATTRIB_BITS
 

Copy state from one rendering context to another.

mask contains the bitwise-OR of the same symbolic names that are passed to the glPushAttrib() function. You can use GL_ALL_ATTRIB_BITS to copy all the rendering state information.

Parameters:
src the source context.
mask which portions of src state are to be copied.
Returns:
false if it fails, true otherwise.

Glib::RefPtr<Context> Gdk::GL::Context::create const Glib::RefPtr< const Drawable > &  gldrawable,
bool  direct = true,
int  render_type = RGBA_TYPE
[static]
 

Create 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 Gdk::GL::Context.

Glib::RefPtr<Context> Gdk::GL::Context::create const Glib::RefPtr< const Drawable > &  gldrawable,
const Glib::RefPtr< const Context > &  share_list,
bool  direct = true,
int  render_type = RGBA_TYPE
[static]
 

Create a new OpenGL rendering context.

Parameters:
gldrawable a Gdk::GL::Drawable.
share_list the Gdk::GL::Context which to share display lists.
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 Gdk::GL::Context.
Examples:
pixmap-mixed.cc, and pixmap.cc.

Glib::RefPtr<Context> Gdk::GL::Context::get_current  )  [static]
 

Returns the current Gdk::GLContext.

Returns:
The current Gdk::GLContext or 0 if there is no current context.

Glib::RefPtr<const Config> Gdk::GL::Context::get_gl_config  )  const
 

Gets Gdk::GLConfig with which the glcontext is configured.

Returns:
The Gdk::GLConfig.

Glib::RefPtr<Config> Gdk::GL::Context::get_gl_config  ) 
 

Gets Gdk::GLConfig with which the glcontext is configured.

Returns:
The Gdk::GLConfig.

Glib::RefPtr<const Drawable> Gdk::GL::Context::get_gl_drawable  )  const
 

Gets Gdk::GLDrawable to which the glcontext is bound.

Returns:
The Gdk::GLDrawable or 0 if no Gdk::GLDrawable is bound.

Glib::RefPtr<Drawable> Gdk::GL::Context::get_gl_drawable  ) 
 

Gets Gdk::GLDrawable to which the glcontext is bound.

Returns:
The Gdk::GLDrawable or 0 if no Gdk::GLDrawable is bound.

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

Gets render_type of the glcontext .

Returns:
GDK_GL_RGBA_TYPE or GDK_GL_COLOR_INDEX_TYPE.

Glib::RefPtr<const Context> Gdk::GL::Context::get_share_list  )  const
 

Gets Gdk::GLContext with which the glcontext shares the display lists and texture objects.

Returns:
The Gdk::GLContext.

Glib::RefPtr<Context> Gdk::GL::Context::get_share_list  ) 
 

Gets Gdk::GLContext with which the glcontext shares the display lists and texture objects.

Returns:
The Gdk::GLContext.

const GdkGLContext* Gdk::GL::Context::gobj  )  const [inline]
 

GdkGLContext* Gdk::GL::Context::gobj  )  [inline]
 

GdkGLContext* Gdk::GL::Context::gobj_copy  ) 
 

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

Returns whether the glcontext is a direct rendering context.

Returns:
true if the glcontext is a direct rendering contest.


Friends And Related Function Documentation

Glib::RefPtr< Gdk::GL::Context > wrap GdkGLContext *  object,
bool  take_copy = false
[related]
 


The documentation for this class was generated from the following file:
Generated on Sat May 17 02:10:03 2003 for gtkglextmm by doxygen1.3