X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscreen%2Fjpgfactory.hxx;h=0e631bb941eea398b6b1c6df0313a064190b6d7a;hb=04a47dfb8d96a58352b16658eb12d4aed90a97e8;hp=97a78c7e714109626282bd76a73334e625063a15;hpb=a8021531abe793f52de4fc903800b3569cf5ef93;p=simgear.git diff --git a/simgear/screen/jpgfactory.hxx b/simgear/screen/jpgfactory.hxx index 97a78c7e..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 @@ -36,6 +42,9 @@ extern "C" { #include + +extern void (*jpgRenderFrame)(void); + /* should look at how VNC does this */ class trJpgFactory { private: @@ -67,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 ; }