Simple Graphics Library
0.9.5
SGL API
|
#include <sgl.h>
Public Member Functions | |
bool | read_BMP_file (const char *fname) |
bool | make_checkerboard () |
void | set_texture (unsigned int textureName) |
Public Attributes | |
int | nRows |
int | nCols |
RGB * | pixel |
The Pixmap class stores the number of rows and columns in the pixmap, as well as the address of the first pixel in memory. The implementation of the Pixmap class is adapted from code found in rgbpixmap.h from Hill's textbook "Computer Graphics Using OpenGL" attributed to J. J. Rajnovich, June 05, 2002
bool sgl::Pixmap::make_checkerboard | ( | ) |
Creates a checkerboard pixmap.
bool sgl::Pixmap::read_BMP_file | ( | const char * | fname | ) |
Read a BMP file into this pixmap.
fname | the name of the BMP file the read in. |