Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5279 in orxonox.OLD


Ignore:
Timestamp:
Oct 4, 2005, 9:20:04 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: almost mac compatibility

Location:
trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r5278 r5279  
    374374# openGL #
    375375#--------#
    376 ac_save_LDFLAGS="${LDFLAGS}"
    377 
    378376# checking gl header
    379377   AC_CHECK_HEADERS([GL/gl.h] ,,
     
    381379
    382380#  checking for Unix GL
    383    AC_CHECK_LIB([GL], [main], [FOUND_GL=yes; LIBS="$LIBS -lGL"; LDFLAGS="${LDFLAGS} -lGL"])
     381   AC_CHECK_LIB([GL], [main], [FOUND_GL=yes; LIBS="$LIBS -lGL"])
    384382   if test x$FOUND_GL != xyes ; then
    385383         echo "------------------"
     
    414412         exit -1
    415413   fi
    416 ## resetting LD-flags as before GL
    417 LDFLAGS="${ac_save_LDFLAGS}"
    418414
    419415#--------#
     
    480476
    481477   LIBS="$LIBS -framework OpenGL"
     478
     479
     480
     481# checking for GLEW-headers
     482   AC_CHECK_HEADERS([GL/glew.h] ,,
     483      [AC_MSG_ERROR([cannot find glew headers]) ])
     484# checking for GLEW-lib
     485  AC_CHECK_LIB([GLEW], [main], [FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"])
     486   if test x$FOUND_GLEW != xyes ; then
     487         echo "------------------"
     488         echo "glew not found."
     489         echo "please install the glew package which can be found at http://glew.sourceforge.net"
     490         echo "------------------"
     491         exit -1
     492   fi
     493
    482494
    483495   AC_CHECK_HEADERS([OpenAL/al.h] ,,
  • trunk/src/defs/glincl.h

    r5263 r5279  
    1414#include <GL/glu.h>
    1515#else
    16 #include <OpenGL/glew.h>
     16#include <GL/glew.h>
    1717#include <OpenGL/gl.h>
    1818#include <OpenGL/glu.h>
  • trunk/src/lib/collision_detection/bounding_volume.h

    r5039 r5279  
    2525
    2626    sVec3D* getVertices() const { return this->vertices; }
    27     virtual void mergeWith(const BoundingVolume &bv) = NULL;
     27    virtual void mergeWith(const BoundingVolume &bv) = 0;
    2828
    29     virtual void drawBV(int currentDepth, int drawMode) const = NULL;
     29    virtual void drawBV(int currentDepth, int drawMode) const = 0;
    3030
    3131
  • trunk/src/lib/collision_detection/bv_tree.h

    r5039 r5279  
    3939  virtual ~BVTree();
    4040
    41   virtual void spawnBVTree(int depth, sVec3D *verticesList, const int length) = NULL;
    42   virtual void flushTree() = NULL;
     41  virtual void spawnBVTree(int depth, sVec3D *verticesList, const int length) = 0;
     42  virtual void flushTree() = 0;
    4343
    44   virtual void collideWith(BVTree* tree, WorldEntity* nodeA, WorldEntity* nodeB) = NULL;
    45   virtual void collideWith(WorldEntity* entity1, WorldEntity* entity2) = NULL;
     44  virtual void collideWith(BVTree* tree, WorldEntity* nodeA, WorldEntity* nodeB) = 0;
     45  virtual void collideWith(WorldEntity* entity1, WorldEntity* entity2) = 0;
    4646
    47   virtual void drawBV(int depth, int drawMode) const = NULL;
     47  virtual void drawBV(int depth, int drawMode) const = 0;
    4848
    4949
  • trunk/src/lib/collision_detection/bv_tree_node.h

    r5039 r5279  
    2525  virtual ~BVTreeNode();
    2626
    27   virtual void spawnBVTree(const int depth, sVec3D *verticesList, const int length ) = NULL;
     27  virtual void spawnBVTree(const int depth, sVec3D *verticesList, const int length ) = 0;
    2828
    29   virtual BoundingVolume* getBV(int index) const = NULL;
     29  virtual BoundingVolume* getBV(int index) const = 0;
    3030  inline const int getIndex() { return this->treeIndex; }
    3131
    32   virtual void collideWith(BVTreeNode* treeNode, WorldEntity* nodeA, WorldEntity* nodeB) = NULL;
     32  virtual void collideWith(BVTreeNode* treeNode, WorldEntity* nodeA, WorldEntity* nodeB) = 0;
    3333
    34   virtual void drawBV(int depth, int drawMode) = NULL;
     34  virtual void drawBV(int depth, int drawMode) = 0;
    3535
    3636
  • trunk/src/lib/event/event_listener.h

    r5239 r5279  
    2121   * @param event: the event
    2222  */
    23   virtual void process(const Event &event) = NULL;
     23  virtual void process(const Event &event) = 0;
    2424};
    2525
  • trunk/src/lib/graphics/render2D/element_2d.h

    r5252 r5279  
    177177  public:
    178178    virtual void tick(float dt);
    179     virtual void draw() const = NULL;
     179    virtual void draw() const = 0;
    180180
    181181  private:
  • trunk/src/lib/lang/base_object.h

    r5113 r5279  
    1212#include "class_id.h"
    1313#ifndef NULL
    14 #define NULL 0x0        //!< NULL
     14#define NULL     0    //!< NULL
    1515#endif
    1616
  • trunk/src/lib/shell/shell_command.h

    r5243 r5279  
    106106  private:
    107107    /** executes a Command @param object the object to apply this to @param parameters the parameters the command takes */
    108     virtual void executeCommand (BaseObject* object, const char* parameters) = NULL;
     108    virtual void executeCommand (BaseObject* object, const char* parameters) = 0;
    109109
    110110  protected:
  • trunk/src/lib/sound/ogg_player.h

    r4985 r5279  
    1313#include "base_object.h"
    1414
    15 #include <AL/al.h>
     15#include "alincl.h"
    1616#include <ogg/ogg.h>
    1717#include <vorbis/vorbisfile.h>
  • trunk/src/lib/sound/sound_engine.cc

    r5226 r5279  
    6060  /* according to http://www.edenwaith.com/products/pige/tutorials/openal.php the alutLoadWAVFile differs from platform to platform*/
    6161#ifdef __APPLE__
    62   alutLoadWAVFile(fileName, &format, &data, &this->size, &freq);
    63 #elifdef __WIN32__
     62  alutLoadWAVFile((ALbyte*)fileName, &format, &data, &this->size, &freq);
     63#elif defined __WIN32__
    6464  alutLoadWAVFile(fileName, &format, &data, &size, &freq, &this->loop);
    6565#else
  • trunk/src/util/fast_factory.h

    r4980 r5279  
    8383
    8484    /** generates a new Object of the Class T */
    85     virtual void fabricate() = NULL;
     85    virtual void fabricate() = 0;
    8686
    8787  private:
  • trunk/src/util/loading/load_param.h

    r5226 r5279  
    307307    {
    308308      const TiXmlElement* elem = root->FirstChildElement(paramName);
    309       if (likely(elem != NULL))
     309      if (elem != NULL)
    310310        (*pt2Object.*function)(elem);
    311311      else
Note: See TracChangeset for help on using the changeset viewer.