Modifications to coordinate with recent changes in simgear.
This commit is contained in:
parent
5014a910bb
commit
a0d50000ba
26 changed files with 83 additions and 56 deletions
src
Cockpit
GUI
Main
Navaids
Objects
Scenery
Time
Weather
WeatherCM
|
@ -30,7 +30,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
// #include <simgear/xgl/xgl.h>
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#include <Include/general.hxx>
|
#include <Include/general.hxx>
|
||||||
|
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <simgear/xgl/xgl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
#include <Airports/simple.hxx>
|
#include <Airports/simple.hxx>
|
||||||
#include <FDM/flight.hxx>
|
#include <FDM/flight.hxx>
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <simgear/xgl/xgl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
#if defined(FX) && defined(XMESA)
|
#if defined(FX) && defined(XMESA)
|
||||||
# include <GL/xmesa.h>
|
# include <GL/xmesa.h>
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <simgear/xgl/xgl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
#if defined(FX) && defined(XMESA)
|
#if defined(FX) && defined(XMESA)
|
||||||
# include <GL/xmesa.h>
|
# include <GL/xmesa.h>
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
#include <simgear/misc/sg_path.hxx>
|
#include <simgear/misc/sg_path.hxx>
|
||||||
|
|
||||||
#include <Include/general.hxx>
|
#include <Include/general.hxx>
|
||||||
#include <simgear/xgl/xgl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
#include <Main/globals.hxx>
|
#include <Main/globals.hxx>
|
||||||
#include <Main/fg_props.hxx>
|
#include <Main/fg_props.hxx>
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
|
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <simgear/xgl/xgl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
#if defined(FX) && defined(XMESA)
|
#if defined(FX) && defined(XMESA)
|
||||||
#include <GL/xmesa.h>
|
#include <GL/xmesa.h>
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <simgear/xgl/xgl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
|
|
||||||
// Handle keyboard events
|
// Handle keyboard events
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <simgear/xgl/xgl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <simgear/xgl/xgl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -60,19 +60,19 @@ void fgSplashInit ( void ) {
|
||||||
|
|
||||||
SG_LOG( SG_GENERAL, SG_INFO, "Initializing splash screen" );
|
SG_LOG( SG_GENERAL, SG_INFO, "Initializing splash screen" );
|
||||||
#ifdef GL_VERSION_1_1
|
#ifdef GL_VERSION_1_1
|
||||||
xglGenTextures(1, &splash_texid);
|
glGenTextures(1, &splash_texid);
|
||||||
xglBindTexture(GL_TEXTURE_2D, splash_texid);
|
glBindTexture(GL_TEXTURE_2D, splash_texid);
|
||||||
#elif GL_EXT_texture_object
|
#elif GL_EXT_texture_object
|
||||||
xglGenTexturesEXT(1, &splash_texid);
|
glGenTexturesEXT(1, &splash_texid);
|
||||||
xglBindTextureEXT(GL_TEXTURE_2D, splash_texid);
|
glBindTextureEXT(GL_TEXTURE_2D, splash_texid);
|
||||||
#else
|
#else
|
||||||
# error port me
|
# error port me
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
xglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
|
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
|
||||||
xglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
|
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
|
||||||
xglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
|
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
|
||||||
xglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
||||||
|
|
||||||
// load in the texture data
|
// load in the texture data
|
||||||
int num = (int)(sg_random() * 4.0 + 1.0);
|
int num = (int)(sg_random() * 4.0 + 1.0);
|
||||||
|
@ -99,7 +99,7 @@ void fgSplashInit ( void ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
xglTexImage2D( GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB,
|
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB,
|
||||||
GL_UNSIGNED_BYTE, (GLvoid *)(splash_texbuf) );
|
GL_UNSIGNED_BYTE, (GLvoid *)(splash_texbuf) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,48 +122,48 @@ void fgSplashUpdate ( double progress ) {
|
||||||
ymax = ymin + ysize;
|
ymax = ymin + ysize;
|
||||||
|
|
||||||
// first clear the screen;
|
// first clear the screen;
|
||||||
xglClearColor(0.0, 0.0, 0.0, 1.0);
|
glClearColor(0.0, 0.0, 0.0, 1.0);
|
||||||
xglClear( GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT );
|
glClear( GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT );
|
||||||
|
|
||||||
// now draw the logo
|
// now draw the logo
|
||||||
xglMatrixMode(GL_PROJECTION);
|
glMatrixMode(GL_PROJECTION);
|
||||||
xglPushMatrix();
|
glPushMatrix();
|
||||||
xglLoadIdentity();
|
glLoadIdentity();
|
||||||
gluOrtho2D(0, fgGetInt("/sim/startup/xsize"),
|
gluOrtho2D(0, fgGetInt("/sim/startup/xsize"),
|
||||||
0, fgGetInt("/sim/startup/ysize"));
|
0, fgGetInt("/sim/startup/ysize"));
|
||||||
xglMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
xglPushMatrix();
|
glPushMatrix();
|
||||||
xglLoadIdentity();
|
glLoadIdentity();
|
||||||
|
|
||||||
xglDisable(GL_DEPTH_TEST);
|
glDisable(GL_DEPTH_TEST);
|
||||||
xglDisable(GL_LIGHTING);
|
glDisable(GL_LIGHTING);
|
||||||
xglEnable(GL_TEXTURE_2D);
|
glEnable(GL_TEXTURE_2D);
|
||||||
#ifdef GL_VERSION_1_1
|
#ifdef GL_VERSION_1_1
|
||||||
xglBindTexture(GL_TEXTURE_2D, splash_texid);
|
glBindTexture(GL_TEXTURE_2D, splash_texid);
|
||||||
#elif GL_EXT_texture_object
|
#elif GL_EXT_texture_object
|
||||||
xglBindTextureEXT(GL_TEXTURE_2D, splash_texid);
|
glBindTextureEXT(GL_TEXTURE_2D, splash_texid);
|
||||||
#else
|
#else
|
||||||
# error port me
|
# error port me
|
||||||
#endif
|
#endif
|
||||||
xglTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL);
|
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL);
|
||||||
|
|
||||||
xglBegin(GL_POLYGON);
|
glBegin(GL_POLYGON);
|
||||||
xglTexCoord2f(0.0, 0.0); glVertex2f(xmin, ymin);
|
glTexCoord2f(0.0, 0.0); glVertex2f(xmin, ymin);
|
||||||
xglTexCoord2f(1.0, 0.0); glVertex2f(xmax, ymin);
|
glTexCoord2f(1.0, 0.0); glVertex2f(xmax, ymin);
|
||||||
xglTexCoord2f(1.0, 1.0); glVertex2f(xmax, ymax);
|
glTexCoord2f(1.0, 1.0); glVertex2f(xmax, ymax);
|
||||||
xglTexCoord2f(0.0, 1.0); glVertex2f(xmin, ymax);
|
glTexCoord2f(0.0, 1.0); glVertex2f(xmin, ymax);
|
||||||
xglEnd();
|
glEnd();
|
||||||
|
|
||||||
xglutSwapBuffers();
|
glutSwapBuffers();
|
||||||
|
|
||||||
xglEnable(GL_DEPTH_TEST);
|
glEnable(GL_DEPTH_TEST);
|
||||||
xglEnable(GL_LIGHTING);
|
glEnable(GL_LIGHTING);
|
||||||
xglDisable(GL_TEXTURE_2D);
|
glDisable(GL_TEXTURE_2D);
|
||||||
|
|
||||||
xglMatrixMode(GL_PROJECTION);
|
glMatrixMode(GL_PROJECTION);
|
||||||
xglPopMatrix();
|
glPopMatrix();
|
||||||
xglMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
xglPopMatrix();
|
glPopMatrix();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,10 @@
|
||||||
#define _FG_FIX_HXX
|
#define _FG_FIX_HXX
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
#include <simgear/misc/sgstream.hxx>
|
#include <simgear/misc/sgstream.hxx>
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
// $Id$
|
// $Id$
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <simgear/debug/logstream.hxx>
|
#include <simgear/debug/logstream.hxx>
|
||||||
#include <simgear/misc/sgstream.hxx>
|
#include <simgear/misc/sgstream.hxx>
|
||||||
#include <simgear/math/sg_geodesy.hxx>
|
#include <simgear/math/sg_geodesy.hxx>
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
// $Id$
|
// $Id$
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <simgear/debug/logstream.hxx>
|
#include <simgear/debug/logstream.hxx>
|
||||||
#include <simgear/misc/sgstream.hxx>
|
#include <simgear/misc/sgstream.hxx>
|
||||||
#include <simgear/math/sg_geodesy.hxx>
|
#include <simgear/math/sg_geodesy.hxx>
|
||||||
|
|
|
@ -25,6 +25,10 @@
|
||||||
#define _FG_MKRBEACON_HXX
|
#define _FG_MKRBEACON_HXX
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
#include <simgear/misc/sg_path.hxx>
|
#include <simgear/misc/sg_path.hxx>
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
// $Id$
|
// $Id$
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <simgear/debug/logstream.hxx>
|
#include <simgear/debug/logstream.hxx>
|
||||||
#include <simgear/misc/sgstream.hxx>
|
#include <simgear/misc/sgstream.hxx>
|
||||||
#include <simgear/math/sg_geodesy.hxx>
|
#include <simgear/math/sg_geodesy.hxx>
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <simgear/xgl/xgl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
|
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <simgear/xgl/xgl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
#include STL_STRING // Standard C++ string library
|
#include STL_STRING // Standard C++ string library
|
||||||
#include <map> // STL associative "array"
|
#include <map> // STL associative "array"
|
||||||
|
|
|
@ -10,11 +10,11 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
|
#include <GL/gl.h>
|
||||||
|
|
||||||
#include <simgear/constants.h>
|
#include <simgear/constants.h>
|
||||||
#include <simgear/sg_inlines.h>
|
#include <simgear/sg_inlines.h>
|
||||||
#include <simgear/math/vector.hxx>
|
#include <simgear/math/vector.hxx>
|
||||||
#include <simgear/xgl/xgl.h>
|
|
||||||
|
|
||||||
#include "hitlist.hxx"
|
#include "hitlist.hxx"
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <simgear/xgl/xgl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
#include <plib/ssg.h> // plib include
|
#include <plib/ssg.h> // plib include
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <simgear/xgl/xgl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
// $Id$
|
// $Id$
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
|
|
||||||
#ifdef SG_MATH_EXCEPTION_CLASH
|
#ifdef SG_MATH_EXCEPTION_CLASH
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <simgear/xgl/xgl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <simgear/xgl/xgl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <simgear/xgl/xgl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
#include <plib/sg.h> // plib include
|
#include <plib/sg.h> // plib include
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <simgear/xgl/xgl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
|
|
||||||
#include <simgear/xgl/xgl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
#ifdef SG_HAVE_STD_INCLUDES
|
#ifdef SG_HAVE_STD_INCLUDES
|
||||||
# include <cmath>
|
# include <cmath>
|
||||||
|
|
|
@ -61,6 +61,10 @@ HISTORY
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
/* INCLUDES */
|
/* INCLUDES */
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue