Source/Gorgon/Geometry.h

branch
4.x-dev
changeset 1525
ab43d641c7c4
child 1530
23a67943a4ee
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Source/Gorgon/Geometry.h	Tue Dec 22 21:45:51 2020 +0200
@@ -0,0 +1,23 @@
+#pragma once
+
+#include "Scripting/Reflection.h"
+
+namespace Gorgon { namespace Geometry {
+
+    extern Scripting::Library LibGeometry;
+    
+    namespace Types {
+#define DEFTYPE(name) \
+        inline const Scripting::Type &name() { \
+            static const Scripting::Type *type = LibGeometry.GetType(#name); \
+            return *type; \
+        }
+
+        DEFTYPE(Point)
+        
+#undef DEFTYPE
+    }
+    
+    void InitializeScripting();
+    
+} }

mercurial