* Margin to Geometry scripting 4.x-dev

Fri, 16 Jul 2021 11:00:50 +0300

author
cemkalyoncu
date
Fri, 16 Jul 2021 11:00:50 +0300
branch
4.x-dev
changeset 1722
ac75a1494fa5
parent 1721
d969488f5f06
child 1723
0e1b70c82324

* Margin to Geometry scripting

Source/Gorgon/Geometry.h file | annotate | diff | comparison | revisions
Source/Gorgon/Geometry/Scripting.cpp file | annotate | diff | comparison | revisions
--- a/Source/Gorgon/Geometry.h	Fri Jul 16 09:18:57 2021 +0300
+++ b/Source/Gorgon/Geometry.h	Fri Jul 16 11:00:50 2021 +0300
@@ -19,6 +19,8 @@
         DEFTYPE(Sizef)
         DEFTYPE(Bounds)
         DEFTYPE(Boundsf)
+        DEFTYPE(Margin)
+        DEFTYPE(Marginf)
         
 #undef DEFTYPE
     }
--- a/Source/Gorgon/Geometry/Scripting.cpp	Fri Jul 16 09:18:57 2021 +0300
+++ b/Source/Gorgon/Geometry/Scripting.cpp	Fri Jul 16 11:00:50 2021 +0300
@@ -3,6 +3,7 @@
 #include "../Scripting/Embedding.h"
 #include "../Scripting/Reflection.h"
 #include "../Scripting.h"
+#include "Margin.h"
 
 namespace Gorgon { namespace Geometry {
 
@@ -304,21 +305,37 @@
 
 		LibGeometry.AddMember(sizef);
         
-        
+
 		auto bounds = new Scripting::MappedValueType<Bounds>(
 			"Bounds",
 			"Basic class for representing a bounds in space."
 		);
 
 		LibGeometry.AddMember(bounds);
-        
-        
+
+
 		auto boundsf = new Scripting::MappedValueType<Boundsf>(
 			"Boundsf",
 			"Basic class for representing a bounds in space."
 		);
 
 		LibGeometry.AddMember(boundsf);
+
+
+		auto margin = new Scripting::MappedValueType<Margin>(
+			"Margin",
+			"Basic class for representing a margin in space."
+		);
+
+		LibGeometry.AddMember(bounds);
+
+
+		auto marginf = new Scripting::MappedValueType<Marginf>(
+			"Marginf",
+			"Basic class for representing a bounds in margin."
+		);
+
+		LibGeometry.AddMember(boundsf);
         
         
 	}

mercurial