Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5279 in orxonox.OLD for trunk/src/lib


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

orxonox/trunk: almost mac compatibility

Location:
trunk/src/lib
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.