//
// Written by Curtis Olson, started July 1997.
//
-// Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
+// Copyright (C) 1997 Curtis L. Olson - http://www.flightgear.org/~curt
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
//
// 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$
# error This library requires C++
#endif
+#include <simgear/structure/OSGVersion.hxx>
+#define FG_OSG_VERSION SG_OSG_VERSION
// #define FANCY_FRAME_COUNTER
#ifdef FANCY_FRAME_COUNTER
char *glVendor;
char *glRenderer;
char *glVersion;
+ int glMaxTexSize;
+ int glDepthBits;
// Last frame rate measurement
int frame_rate;
inline char* get_glRenderer() const { return glRenderer; }
inline void set_glRenderer( char *str ) { glRenderer = str; }
inline void set_glVersion( char *str ) { glVersion = str; }
+ inline void set_glMaxTexSize( int i ) { glMaxTexSize = i; }
+ inline int get_glMaxTexSize() const { return glMaxTexSize; }
+ inline void set_glDepthBits( int d ) { glDepthBits = d; }
+ inline int get_glDepthBits() const { return glDepthBits; }
inline double get_frame_rate() const { return frame_rate; }
#ifdef FANCY_FRAME_COUNTER
inline double get_frame(int idx) const { return frames[idx]; }