--- /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(); + +} }