k3d::gl::context Class Reference

Abstract interface implemented by OpenGL context objects. More...

#include <context.h>

Inheritance diagram for k3d::gl::context:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~context ()
const apibegin ()
void end ()
 If the context is double-buffered, swaps the front and back buffers. Otherwise, a no-op.

Static Public Member Functions

static contextcurrent ()
 Returns the currently-active context, if any, or NULL.

Protected Member Functions

 context ()
 context (const context &)
contextoperator= (const context &)
virtual const apion_begin ()=0
virtual void on_end ()=0
 If the context is double-buffered, concrete implementations should swap the front and back buffers. Otherwise, a no-op.

Detailed Description

Abstract interface implemented by OpenGL context objects.


Constructor & Destructor Documentation

virtual k3d::gl::context::~context (  )  [inline, virtual]
k3d::gl::context::context (  )  [inline, protected]
k3d::gl::context::context ( const context  )  [inline, protected]

Member Function Documentation

const api & k3d::gl::context::begin (  ) 

Activates this context for drawing in the calling thread, returning an OpenGL drawing api for rendering using this context.

References k3d::gl::g_current(), and on_begin().

context * k3d::gl::context::current (  )  [static]

Returns the currently-active context, if any, or NULL.

References k3d::gl::g_current().

Referenced by k3d::gl::extension::extensions().

void k3d::gl::context::end (  ) 

If the context is double-buffered, swaps the front and back buffers. Otherwise, a no-op.

References k3d::gl::g_current(), and on_end().

virtual const api& k3d::gl::context::on_begin (  )  [protected, pure virtual]

Concrete implementations should activate this context for drawing in the calling thread, returning an OpenGL drawing api for rendering.

Implemented in module::glx::context, and module::osmesa::context.

Referenced by begin().

virtual void k3d::gl::context::on_end (  )  [protected, pure virtual]

If the context is double-buffered, concrete implementations should swap the front and back buffers. Otherwise, a no-op.

Implemented in module::glx::context, and module::osmesa::context.

Referenced by end().

context& k3d::gl::context::operator= ( const context  )  [inline, protected]

The documentation for this class was generated from the following files:

Generated on Mon Mar 21 07:42:23 2011 for K-3D by doxygen 1.6.3