]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/rod.h
Update Track3D to use GL::Renderer
[r2c2.git] / source / 3d / rod.h
diff --git a/source/3d/rod.h b/source/3d/rod.h
new file mode 100644 (file)
index 0000000..6a32510
--- /dev/null
@@ -0,0 +1,33 @@
+/* $Id$
+
+This file is part of R²C²
+Copyright © 2011  Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
+#ifndef LIBR2C23D_ROD_H_
+#define LIBR2C23D_ROD_H_
+
+#include <msp/gl/objectinstance.h>
+#include "libr2c2/vehicle.h"
+
+namespace R2C2 {
+
+class Vehicle3D;
+
+class Rod3D: public Msp::GL::ObjectInstance
+{
+private:
+       const Vehicle &vehicle;
+       const Vehicle::Rod &rod;
+
+public:
+       Rod3D(const Vehicle3D &, unsigned);
+
+       virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
+       virtual void setup_render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
+};
+
+} // namespace R2C2
+
+#endif