|
#include <GLBitmapBuffer.h>
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. | |
Definition at line 24 of file GLBitmapBuffer.h.
1.2.15