* Bounds and Boundsf geometry scripting types 4.x-dev

Thu, 11 Feb 2021 12:26:17 +0300

author
dogukangulyasar
date
Thu, 11 Feb 2021 12:26:17 +0300
branch
4.x-dev
changeset 1589
13038a91c0f4
parent 1588
fad9cb4ad21a
child 1590
e7de5fecf675

* Bounds and Boundsf geometry scripting types

Source/Gorgon/Geometry.h file | annotate | diff | comparison | revisions
Source/Gorgon/Geometry/Scripting.cpp file | annotate | diff | comparison | revisions
--- a/Source/Gorgon/Geometry.h	Thu Feb 11 09:01:26 2021 +0200
+++ b/Source/Gorgon/Geometry.h	Thu Feb 11 12:26:17 2021 +0300
@@ -17,6 +17,8 @@
         DEFTYPE(Pointf)
         DEFTYPE(Size)
         DEFTYPE(Sizef)
+        DEFTYPE(Bounds)
+        DEFTYPE(Boundsf)
         
 #undef DEFTYPE
     }
--- a/Source/Gorgon/Geometry/Scripting.cpp	Thu Feb 11 09:01:26 2021 +0200
+++ b/Source/Gorgon/Geometry/Scripting.cpp	Thu Feb 11 12:26:17 2021 +0300
@@ -1,4 +1,5 @@
 #include "Point.h"
+#include "Bounds.h"
 #include "../Scripting/Embedding.h"
 #include "../Scripting/Reflection.h"
 #include "../Scripting.h"
@@ -304,5 +305,21 @@
 		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);
+        
+        
 	}
 } }

mercurial