| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // Struct defines that we use to cast blittable classes,
- // so that the C++ compiler will return a value that our P/Invoke
- // layer can consume
- //
- #ifndef URHO_INTEROP_H
- #define URHO_INTEROP_H
- namespace Interop {
- struct IntVector2 {
- int a, b;
- };
- struct Vector2 {
- float x, y;
- };
- struct Vector3 {
- float x, y, z;
- };
- struct Vector4 {
- float x, y, z, w;
- };
- struct Quaternion {
- float w, x, y, z;
- };
- struct Color {
- float r, g, b, a;
- };
-
- struct BoundingBox {
- Vector3 min, max;
- bool defined;
- };
- struct Plane {
- Vector3 normal, absNormal;
- float d;
- };
- }
- #endif
|