initial revision

git-svn-id: svn://anubis/misc/OdeWorld@141 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
josh 2009-09-26 16:53:08 +00:00
parent f55527d25c
commit 754f83e639
3 changed files with 41 additions and 0 deletions

12
Makefile Normal file
View File

@ -0,0 +1,12 @@
TARGET := OdeWorld.o
SOURCES := $(wildcard *.cc)
HEADERS := $(wildcard *.h)
all: $(TARGET)
$(TARGET): $(SOURCES) $(HEADERS)
$(CXX) -c -o $@ $(CXXFLAGS) $(SOURCES)
clean:
-rm -f *~ *.o

12
OdeWorld.cc Normal file
View File

@ -0,0 +1,12 @@
#include "OdeWorld.h"
OdeWorld::OdeWorld()
{
m_world = dWorldCreate();
}
OdeWorld::~OdeWorld()
{
dWorldDestroy(m_world);
}

17
OdeWorld.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef ODEWORLD_H
#define ODEWORLD_H
#include <ode/ode.h>
class OdeWorld
{
public:
OdeWorld();
~OdeWorld();
protected:
dWorldID m_world;
};
#endif