mimas::mesa_onscreen Class Reference

Mesa on-screen rendering. More...

#include <mesa_onscreen.h>

Inheritance diagram for mimas::mesa_onscreen:

Inheritance graph
[legend]
Collaboration diagram for mimas::mesa_onscreen:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 mesa_onscreen (x11_window *_window) throw (mimasexception)
 Constructor.
virtual ~mesa_onscreen (void)
 Destructor.
virtual void finish (void)
 Finish on-screen rendering.
virtual void ortho2D (int x1, int y1, int x2, int y2) const
 Switch to two-dimensional drawing mode.
virtual void ortho2D (void) const
 Switch to two-dimensional drawing mode.

Protected Attributes

x11_windowwindow
GLXContext context
 GLX context for on-screen rendering.
bool finishOnScreen
 State of object.

Detailed Description

Mesa on-screen rendering.

Support for on-screen rendering using Mesa.

No stencil- and accumulation-buffer are allocated.

Do not forget to initialise glut at the beginning of your program:

    glutInit( &argc, argv );
    

If you experience problems, you may want to try:

    export LIBGL_ALWAYS_INDIRECT=1
    
This disables hardware rendering.

If it works:

If it doesn't:

See also:
x11_window
Author:
Jan Wedekind (jan at wedesoft.de)
Date:
Wed Mar 30 19:35:05 UTC 2005

Definition at line 40 of file mesa_onscreen.h.


Constructor & Destructor Documentation

mimas::mesa_onscreen::mesa_onscreen ( x11_window _window  )  throw (mimasexception)

Constructor.

All parameters must be destructed by the calling program.

Parameters:
_window Window to open GLX context for.

virtual mimas::mesa_onscreen::~mesa_onscreen ( void   )  [virtual]

Destructor.

The destructor will destruct the OpenGL-context and call mesa_base::finish() .


Member Function Documentation

virtual void mimas::mesa_onscreen::finish ( void   )  [virtual]

Finish on-screen rendering.

This method calls glFinish() and mesa_base::finish() .

Reimplemented from mimas::mesa_base.

virtual void mimas::mesa_onscreen::ortho2D ( int  x1,
int  y1,
int  x2,
int  y2 
) const [virtual]

Switch to two-dimensional drawing mode.

See also:
mesa_base::ortho2D

Implements mimas::mesa_base.

virtual void mimas::mesa_onscreen::ortho2D ( void   )  const [virtual]

Switch to two-dimensional drawing mode.

See also:
mesa_base::ortho2D

Implements mimas::mesa_base.


Member Data Documentation

x11_window* mimas::mesa_onscreen::window [protected]

Definition at line 62 of file mesa_onscreen.h.

GLXContext mimas::mesa_onscreen::context [protected]

GLX context for on-screen rendering.

Definition at line 64 of file mesa_onscreen.h.

bool mimas::mesa_onscreen::finishOnScreen [protected]

State of object.

Definition at line 66 of file mesa_onscreen.h.


The documentation for this class was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:35 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...