00001 #include <simgear/compiler.h> 00002 00003 #include <osg/GL> 00004 00005 class GlBitmap 00006 { 00007 public: 00008 GlBitmap( GLenum mode=GL_RGB, GLint width=0, GLint height=0, GLubyte *bitmap=0 ); 00009 ~GlBitmap(); 00010 GLubyte *getBitmap(); 00011 void copyBitmap( GlBitmap *from, GLint at_x, GLint at_y ); 00012 private: 00013 GLint m_bytesPerPixel; 00014 GLint m_width; 00015 GLint m_height; 00016 GLint m_bitmapSize; 00017 GLubyte *m_bitmap; 00018 };