- this exposed a bizarre issue on Mac where dragging in <AGL/agl.h> in extensions.hxx was pulling in all of Carbon to the global namespace - very scary. As a result, I now need to explicitly include CoreFoundation in fg_init.cxx. - change SG_USING_STD(x) to using std::x Issues: - the logic for X11 and Win32 in RenderTexture and extensions is tortured, please see if you agree I got all the ifdefs correct.
19 lines
365 B
C++
19 lines
365 B
C++
#include <simgear/compiler.h>
|
|
|
|
#include <osg/GL>
|
|
|
|
class GlBitmap
|
|
{
|
|
public:
|
|
GlBitmap( GLenum mode=GL_RGB, GLint width=0, GLint height=0, GLubyte *bitmap=0 );
|
|
~GlBitmap();
|
|
GLubyte *getBitmap();
|
|
void copyBitmap( GlBitmap *from, GLint at_x, GLint at_y );
|
|
private:
|
|
GLint m_bytesPerPixel;
|
|
GLint m_width;
|
|
GLint m_height;
|
|
GLint m_bitmapSize;
|
|
GLubyte *m_bitmap;
|
|
};
|