Source/Gorgon/Geometry.h

Tue, 22 Dec 2020 21:45:51 +0200

author
cemkalyoncu
date
Tue, 22 Dec 2020 21:45:51 +0200
branch
4.x-dev
changeset 1525
ab43d641c7c4
child 1530
23a67943a4ee
permissions
-rw-r--r--

* Geometry reflection
* A small fix in compile script for windows

1525
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
1 #pragma once
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
2
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
3 #include "Scripting/Reflection.h"
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
4
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
5 namespace Gorgon { namespace Geometry {
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
6
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
7 extern Scripting::Library LibGeometry;
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
8
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
9 namespace Types {
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
10 #define DEFTYPE(name) \
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
11 inline const Scripting::Type &name() { \
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
12 static const Scripting::Type *type = LibGeometry.GetType(#name); \
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
13 return *type; \
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
14 }
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
15
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
16 DEFTYPE(Point)
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
17
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
18 #undef DEFTYPE
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
19 }
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
20
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
21 void InitializeScripting();
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
22
ab43d641c7c4 * Geometry reflection
cemkalyoncu
parents:
diff changeset
23 } }

mercurial