diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9674c30 --- /dev/null +++ b/Makefile @@ -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 diff --git a/OdeWorld.cc b/OdeWorld.cc new file mode 100644 index 0000000..38b4aba --- /dev/null +++ b/OdeWorld.cc @@ -0,0 +1,12 @@ + +#include "OdeWorld.h" + +OdeWorld::OdeWorld() +{ + m_world = dWorldCreate(); +} + +OdeWorld::~OdeWorld() +{ + dWorldDestroy(m_world); +} diff --git a/OdeWorld.h b/OdeWorld.h new file mode 100644 index 0000000..055a6d0 --- /dev/null +++ b/OdeWorld.h @@ -0,0 +1,17 @@ + +#ifndef ODEWORLD_H +#define ODEWORLD_H + +#include + +class OdeWorld +{ + public: + OdeWorld(); + ~OdeWorld(); + + protected: + dWorldID m_world; +}; + +#endif