#include <glimage.h>
Public Member Functions | |
GLImage (GLsizei w, GLsizei h, GLint iForm=GL_RGB, GLint form=GL_RGB, GLenum t=GL_UNSIGNED_BYTE, unsigned pSize=0) | |
void | set (GLsizei w, GLsizei h, GLint iForm=GL_RGB, GLint form=GL_RGB, GLenum t=GL_UNSIGNED_BYTE, unsigned pSize=0) |
void | setFileName (std::string fName) |
char | getBytesPerPixel () |
GLsizei | getNumberOfPixels () |
GLsizei | getWidth () |
GLsizei | getHeight () |
void | generateTexture (GLenum target, GLint mipmapLevel, GLint border) |
void | generateMipmap (GLenum target) |
void | copyFromBuffer (GLvoid *buf, GLsizei bufsize) |
void | copyFromScreen (GLint x, GLint y) |
void | copyToBuffer (GLvoid *buf, GLsizei bufsize) |
void | copyToScreen (GLint x, GLint y) |
void | loadFromFile (std::string fname) |
void | loadFromFile () |
void | loadFromBMP (std::string fname) |
void | saveToFile (std::string fname) |
void | saveToFile () |
void | saveToBMP (std::string fname) |
void | use () |
void | convertRGBtoBGR () |
void | invert () |
void | booleanNot () |
GLImage (GLsizei w, GLsizei h, GLint iForm=GL_RGB, GLint form=GL_RGB, GLenum t=GL_UNSIGNED_BYTE, unsigned pSize=0) | |
void | set (GLsizei w, GLsizei h, GLint iForm=GL_RGB, GLint form=GL_RGB, GLenum t=GL_UNSIGNED_BYTE, unsigned pSize=0) |
void | setFileName (std::string fName) |
char | getBytesPerPixel () |
GLsizei | getNumberOfPixels () |
GLsizei | getWidth () |
GLsizei | getHeight () |
void | generateTexture (GLenum target, GLint mipmapLevel, GLint border) |
void | generateMipmap (GLenum target) |
void | copyFromBuffer (GLvoid *buf, GLsizei bufsize) |
void | copyFromScreen (GLint x, GLint y) |
void | copyToBuffer (GLvoid *buf, GLsizei bufsize) |
void | copyToScreen (GLint x, GLint y) |
void | loadFromFile (std::string fname) |
void | loadFromFile () |
void | loadFromBMP (std::string fname) |
void | saveToFile (std::string fname) |
void | saveToFile () |
void | saveToBMP (std::string fname) |
void | use () |
void | convertRGBtoBGR () |
void | invert () |
void | booleanNot () |
Static Public Member Functions | |
GLImage * | staticLoadFromFile (std::string fname) |
GLImage * | staticLoadFromFile (std::string fname) |
Protected Attributes | |
char | bpp |
GLsizei | pixels |
GLsizei | size |
GLsizei | width |
GLsizei | height |
GLint | internalFormat |
GLint | format |
GLenum | type |
unsigned | paletteSize |
char * | palette |
void * | data |
GLuint | texname |
std::string | fileName |
char * | palette |
void * | data |
Friends | |
std::basic_istream< char, std::char_traits< char > > & | operator>> (std::basic_istream< char, std::char_traits< char > > &in, GLImage &im) |
std::basic_ostream< char, std::char_traits< char > > & | operator<< (std::basic_ostream< char, std::char_traits< char > > &out, GLImage &im) |
std::basic_istream< char, std::char_traits< char > > & | operator>> (std::basic_istream< char, std::char_traits< char > > &in, GLImage &im) |
std::basic_ostream< char, std::char_traits< char > > & | operator<< (std::basic_ostream< char, std::char_traits< char > > &out, GLImage &im) |
|
manipulators |
|
manipulators |
|
for loading and saving via SML |
|
for loading and saving via SML |