]> git.tdb.fi Git - libs/gl.git/blobdiff - source/objectinstance.cpp
Add Uniform* classes to store uniform data of Programs
[libs/gl.git] / source / objectinstance.cpp
diff --git a/source/objectinstance.cpp b/source/objectinstance.cpp
new file mode 100644 (file)
index 0000000..80f44cd
--- /dev/null
@@ -0,0 +1,25 @@
+/* $Id$
+
+This file is part of libmspgl
+Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#include "object.h"
+#include "objectinstance.h"
+#include "programdata.h"
+
+namespace Msp {
+namespace GL {
+
+ObjectInstance::ObjectInstance(const Object &obj):
+       object(obj)
+{ }
+
+void ObjectInstance::render() const
+{
+       object.render(this);
+}
+
+} // namespace GL
+} // namespaec Msp