Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8296 in orxonox.OLD


Ignore:
Timestamp:
Jun 9, 2006, 1:04:56 AM (18 years ago)
Author:
ponder
Message:
  • volfog_effect.cc didn't compile on macosx, because there's no glX* stuff. Now macosx is handled specially
  • For some reason, PACKAGE_NAME, PACKAGE_VERSION and similar variables were not found. I added them to debug.h, but thats just temporary.
Location:
branches/terrain/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/terrain/src/defs/debug.h

    r8282 r8296  
    111111#define PRINTFORX_VDEBUG  PRINTF5
    112112
     113#ifndef ORX_DATADIR
     114#define ORX_DATADIR "/usr/share"
     115#endif
     116#ifndef DEBUG_LEVEL
     117#define DEBUG_LEVEL 2
     118#endif
    113119#if DEBUG_LEVEL <= 3
    114120#define PRINTF(x)        PRINT(x)
  • branches/terrain/src/defs/glincl.h

    r5279 r8296  
    1717#include <OpenGL/gl.h>
    1818#include <OpenGL/glu.h>
     19#include <OpenGL/glext.h>
    1920#endif
    2021
  • branches/terrain/src/lib/graphics/effects/volfog_effect.cc

    r7810 r8296  
    2323#include "glincl.h"
    2424//#include "shell_command.h"
    25 
    2625#define GLX_GLXEXT_PROTOTYPES
    27 #include <GL/glx.h>
    28 // #include <GL/glut.h>
    29 
    30 //#include <GL/glext.h> //OpenGL Extensions
    31 //#include <GL/glxext.h> // GLX Extensions
    32 
     26
     27//#include <OpenGL/glext.h> //OpenGL Extensions
     28//#include <OpenGL/glxext.h> // GLX Extensions
     29#ifndef __APPLE__
    3330#ifndef GL_EXT_fog_coord
    3431#define GL_EXT_fog_coord 1
     
    4542PFNGLFOGCOORDDVEXTPROC glFogCoorddvEXT = 0;
    4643PFNGLFOGCOORDPOINTEREXTPROC glFogCoordPointerEXT = 0;
    47 
     44#endif
    4845
    4946using namespace std;
     
    9390        float fogColor[4] = {0.6f,0.58f,0.79f,0.0f};
    9491       
    95 
     92#ifndef __APPLE__
    9693        glFogCoordfEXT       = (PFNGLFOGCOORDFEXTPROC)glXGetProcAddressARB((const GLubyte*)"glFogCoordfEXT");
    9794        glFogCoordfvEXT      = (PFNGLFOGCOORDFVEXTPROC)glXGetProcAddressARB((const GLubyte*)"glFogCoordfvEXT");
     
    9996        glFogCoorddvEXT      = (PFNGLFOGCOORDDVEXTPROC)glXGetProcAddressARB((const GLubyte*)"glFogCoorddvEXT");
    10097        glFogCoordPointerEXT = (PFNGLFOGCOORDPOINTEREXTPROC)glXGetProcAddressARB((const GLubyte*)"glFogCoordPointerEXT");
    101 
     98#endif
    10299        // set the fog attributes
    103100        glFogf (GL_FOG_START,  fogStart);
  • branches/terrain/src/lib/util/threading.h

    r7847 r8296  
    1414 #include <SDL/SDL_thread.h>
    1515#endif
    16 
     16#include <string>
    1717namespace OrxThread
    1818{
     
    3131    void start();
    3232    void terminate();
    33 
    34 
    3533  private:
    3634    SDL_Thread* thread;
  • branches/terrain/src/orxonox.cc

    r8145 r8296  
    2727#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ORXONOX
    2828#include "orxonox.h"
    29 
     29#ifndef PACKAGE_NAME
     30#define PACKAGE_NAME "orxonox"
     31#endif
     32#ifndef PACKAGE_VERSION
     33#define PACKAGE_VERSION "00"
     34#endif
    3035#include "globals.h"
    3136
Note: See TracChangeset for help on using the changeset viewer.