Source/Gorgon/Geometry.h

branch
4.x-dev
changeset 1525
ab43d641c7c4
child 1530
23a67943a4ee
equal deleted inserted replaced
1524:22b7b47127d4 1525:ab43d641c7c4
1 #pragma once
2
3 #include "Scripting/Reflection.h"
4
5 namespace Gorgon { namespace Geometry {
6
7 extern Scripting::Library LibGeometry;
8
9 namespace Types {
10 #define DEFTYPE(name) \
11 inline const Scripting::Type &name() { \
12 static const Scripting::Type *type = LibGeometry.GetType(#name); \
13 return *type; \
14 }
15
16 DEFTYPE(Point)
17
18 #undef DEFTYPE
19 }
20
21 void InitializeScripting();
22
23 } }

mercurial