added WITHOUT_ODE testing to some sources to build without ODE support

git-svn-id: svn://anubis/dwscr/trunk@124 5bef9df8-b654-44bb-925b-0ff18baa8f8c
This commit is contained in:
josh committed 2010-10-26 20:22:28 +00:00
1 parent 639e4c9f23
commit 8d759e4fd7
4 files changed
+13

No files matched your search

+1
View File
@@ -14,6 +14,7 @@
#include "../wfobj/WFObj.h"
#include "LogoBox.h"
#include "../LoadFile/LoadFile.h"
#include <string.h> /* memcpy() */
#include <iostream>
using namespace std;
+2
View File
@@ -25,6 +25,7 @@ void SSMode::update()
m_elapsed = ticks - m_startTick;
}
#ifndef WITHOUT_ODE
/* push an OpenGL matrix onto the matrix stack for a given
* ODE body position and rotation */
void SSMode::pushTransform(const dReal pos[3], const dReal R[12])
@@ -49,3 +50,4 @@ void SSMode::pushTransform(const dReal pos[3], const dReal R[12])
glPushMatrix();
glMultMatrixf(matrix);
}
#endif
+4
View File
@@ -9,7 +9,9 @@
#include <SDL.h>
#include <GL/gl.h>
#ifndef WITHOUT_ODE
#include <ode/ode.h>
#endif
class SSMain;
@@ -21,7 +23,9 @@ public:
SSMode(SSMain * _SSMain);
virtual ~SSMode();
virtual void update();
#ifndef WITHOUT_ODE
void pushTransform(const dReal pos[3], const dReal R[12]);
#endif
protected:
SSMain * m_SSMain;