GLBitmapBuffer Class Reference

Allows drawing with OpenGL to a 24-bpp bitmap, which the class can also save. More...

#include <GLBitmapBuffer.h>

List of all members.

Public Methods

 GLBitmapBuffer ()
 Constructor.

 ~GLBitmapBuffer ()
 Destructor.

void create (unsigned int w, unsigned int h)
 Allocates memory for the internal bitmap. Must be called before other methods.

unsigned int getWidth () const
 Get the width of the image in pixels.

unsigned int getHeight () const
 Get the height of the image in pixels.

void select ()
 Select the buffer, so that OpenGL calls will render to the bitmap inside.

void unselect ()
 Unselect the buffer, so that OpenGL calls will render to the previously-selected context (a window, possibly).

RgbByte * operator[] (int index)
 Standard accessor method.

unsigned char * getData ()
 Standard accessor method.

HDC getHDC ()
void saveAs (char *filename)
 Saves the bitmap to a file. The file must end in either a .ppm or .pgm extension.


Detailed Description

Allows drawing with OpenGL to a 24-bpp bitmap, which the class can also save.

Definition at line 24 of file GLBitmapBuffer.h.


The documentation for this class was generated from the following files:
Generated on Tue May 21 03:35:10 2002 for Archimedes by doxygen1.2.15