From 754f83e6399919f8d2e12be0e77a3e396f02326a Mon Sep 17 00:00:00 2001 From: josh Date: Sat, 26 Sep 2009 16:53:08 +0000 Subject: [PATCH] initial revision git-svn-id: svn://anubis/misc/OdeWorld@141 bd8a9e45-a331-0410-811e-c64571078777 --- Makefile | 12 ++++++++++++ OdeWorld.cc | 12 ++++++++++++ OdeWorld.h | 17 +++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 Makefile create mode 100644 OdeWorld.cc create mode 100644 OdeWorld.h 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