First batch of changes required for MacOS X build. Orignal submission from

Phil Atkin, merged by Robert Osfield.
This commit is contained in:
Robert Osfield
2002-01-16 10:36:20 +00:00
parent f7e944c47f
commit 1fb8f9cb86
33 changed files with 116 additions and 26 deletions

View File

@@ -9,7 +9,7 @@
// non windows, doesn't require nonsense as seen below :-)
#ifndef __gl_h_
#ifdef __APPLE_CC__
#ifdef __DARWIN_OSX__
#include <OpenGL/gl.h>
#else
#include <GL/gl.h>

View File

@@ -5,7 +5,7 @@
#ifndef OSG_GLU
#define OSG_GLU 1
#ifdef __APPLE_CC__
#ifdef __DARWIN_OSX__
#include <OpenGL/glu.h>
#else
#include <GL/glu.h>

View File

@@ -33,7 +33,7 @@ class SG_EXPORT Timer {
Timer();
~Timer() {}
#if defined __APPLE__ || defined macintosh
#if defined __DARWIN_OSX__ || defined macintosh
// PJA MAC OSX - inline Tick() pollutes namespace so badly
// we cant compile, due to Carbon.h ...
Timer_t tick();
@@ -150,7 +150,7 @@ namespace osg{
}
};
#elif !defined (__APPLE_CC__) && !defined (macintosh)
#elif !defined (__DARWIN_OSX__) && !defined (macintosh)
// no choice, always use std::clock()

View File

@@ -56,6 +56,7 @@ public:
virtual int getAscender() const;
int getPointSize(void) const { return _pointSize; }
int getTextureSize(void) const { return _textureSize; }
const std::string& getFontName();
FTFont* getFont(void) { return _font; }
@@ -77,6 +78,7 @@ protected:
std::string _fontName;
int _pointSize;
int _res;
int _textureSize;
};
// Font
///////////////////////////////////////////////////////////////////////////////
@@ -167,6 +169,10 @@ public:
TextureFont(const std::string& font,
int point_size);
TextureFont(const std::string& font,
int point_size,
int textureSize );
META_Object(TextureFont);