initial revision
git-svn-id: svn://anubis/misc/OdeWorld@141 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
parent
f55527d25c
commit
754f83e639
12
Makefile
Normal file
12
Makefile
Normal 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
12
OdeWorld.cc
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
#include "OdeWorld.h"
|
||||
|
||||
OdeWorld::OdeWorld()
|
||||
{
|
||||
m_world = dWorldCreate();
|
||||
}
|
||||
|
||||
OdeWorld::~OdeWorld()
|
||||
{
|
||||
dWorldDestroy(m_world);
|
||||
}
|
17
OdeWorld.h
Normal file
17
OdeWorld.h
Normal 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
|
Loading…
x
Reference in New Issue
Block a user