]> git.mxchange.org Git - simgear.git/blobdiff - simgear/screen/jpgfactory.hxx
extinguish many warnings (at least for gcc)
[simgear.git] / simgear / screen / jpgfactory.hxx
index 9ad0a74d31e1716033eb7aa0934116b7c08ab3be..0e631bb941eea398b6b1c6df0313a064190b6d7a 100644 (file)
 extern "C" {
 #endif
 
+#ifdef HAVE_WINDOWS_H
+#  define XMD_H // to avoid INT32 redefinition
+#endif
+
+#include <stdlib.h>
+#include <stdio.h>
 #include <jpeglib.h>
 #include <jerror.h>
 
@@ -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 ; }