X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscreen%2Fjpgfactory.hxx;h=0e631bb941eea398b6b1c6df0313a064190b6d7a;hb=5e542aa841b9bd661123e4eb6a2355a8a828084a;hp=9ad0a74d31e1716033eb7aa0934116b7c08ab3be;hpb=dcb95d131bc6aef1abe25d1f415e309f06e52436;p=simgear.git diff --git a/simgear/screen/jpgfactory.hxx b/simgear/screen/jpgfactory.hxx index 9ad0a74d..0e631bb9 100644 --- a/simgear/screen/jpgfactory.hxx +++ b/simgear/screen/jpgfactory.hxx @@ -27,6 +27,12 @@ extern "C" { #endif +#ifdef HAVE_WINDOWS_H +# define XMD_H // to avoid INT32 redefinition +#endif + +#include +#include #include #include @@ -70,6 +76,10 @@ class trJpgFactory { void destroy(int error = 0); int render(); + void setFrustum(GLdouble left, GLdouble right, + GLdouble bottom, GLdouble top, + GLdouble zNear, GLdouble zFar) { trFrustum(tr, left, right, bottom, top, zNear, zFar); } + unsigned char *data() { return IMAGE ; } struct jpeg_compress_struct *JPGinfo() { return &cinfo ; }