X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscreen%2Fjpgfactory.hxx;h=0e631bb941eea398b6b1c6df0313a064190b6d7a;hb=2cc31ff425cbb4665e8bd69900cffa14709057e8;hp=2c9c4e9cec255f1efa9fb1c7ca7a7c2270633421;hpb=62aa32a4178659d224340997dd065cc3b49bbf11;p=simgear.git diff --git a/simgear/screen/jpgfactory.hxx b/simgear/screen/jpgfactory.hxx index 2c9c4e9c..0e631bb9 100644 --- a/simgear/screen/jpgfactory.hxx +++ b/simgear/screen/jpgfactory.hxx @@ -16,9 +16,9 @@ // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // -// $Id: +// $Id$ #ifndef _FG_JPGFACTORY_HXX #define _FG_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 ; }