X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscreen%2Fjpgfactory.hxx;h=0e631bb941eea398b6b1c6df0313a064190b6d7a;hb=2cc31ff425cbb4665e8bd69900cffa14709057e8;hp=abc0318670fcd69af3a34942988f03cc38fed655;hpb=efac53b1212d3dd3456b7cada4262287c700ce34;p=simgear.git diff --git a/simgear/screen/jpgfactory.hxx b/simgear/screen/jpgfactory.hxx index abc03186..0e631bb9 100644 --- a/simgear/screen/jpgfactory.hxx +++ b/simgear/screen/jpgfactory.hxx @@ -27,6 +27,10 @@ extern "C" { #endif +#ifdef HAVE_WINDOWS_H +# define XMD_H // to avoid INT32 redefinition +#endif + #include #include #include @@ -72,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 ; }