-
-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74095a5
commit b8aa409
Showing
4 changed files
with
60 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#pragma once | ||
|
||
#include "xrCore/xrCore.h" | ||
|
||
namespace XRay | ||
{ | ||
namespace ManagedApi | ||
{ | ||
namespace Core | ||
{ | ||
using namespace System; | ||
using System::Runtime::InteropServices::OutAttribute; | ||
using System::Runtime::InteropServices::StructLayoutAttribute; | ||
using System::Runtime::InteropServices::LayoutKind; | ||
using System::Runtime::InteropServices::FieldOffsetAttribute; | ||
|
||
[StructLayout(LayoutKind::Sequential, Size = sizeof(Fcolor))] public value struct ColorF | ||
{ | ||
public: | ||
float r, g, b, a; | ||
}; | ||
|
||
[StructLayout(LayoutKind::Sequential, Size = sizeof(Fvector2))] public value struct Vector2F | ||
{ | ||
float x, y; | ||
}; | ||
|
||
[StructLayout(LayoutKind::Sequential, Size = sizeof(Fvector3))] public value struct Vector3F | ||
{ | ||
float x, y, z; | ||
}; | ||
|
||
//[FieldOffset(offsetof(Fvector4, x))] | ||
[StructLayout(LayoutKind::Sequential, Size = sizeof(Fvector4))] public value struct Vector4F | ||
{ | ||
float x, y, z, w; | ||
}; | ||
|
||
[StructLayout(LayoutKind::Sequential, Size = sizeof(Ivector2))] public value struct Vector2I | ||
{ | ||
int x, y; | ||
}; | ||
|
||
[StructLayout(LayoutKind::Sequential, Size = sizeof(Ivector3))] public value struct Vector3I | ||
{ | ||
int x, y, z; | ||
}; | ||
|
||
[StructLayout(LayoutKind::Sequential, Size = sizeof(Ivector4))] public value struct Vector4I | ||
{ | ||
int x, y, z, w; | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters