Implement .NET 7 runtime support and bindings generation
This commit is contained in:
@@ -175,6 +175,7 @@ public:
|
||||
/// <param name="size">Size of the memory to copy in bytes</param>
|
||||
FORCE_INLINE static void MemoryCopy(void* dst, const void* src, uint64 size)
|
||||
{
|
||||
SCRIPTING_EXPORT("FlaxEngine.Utils::MemoryCopy")
|
||||
memcpy(dst, src, static_cast<size_t>(size));
|
||||
}
|
||||
|
||||
@@ -196,6 +197,7 @@ public:
|
||||
/// <param name="size">Size of the memory to clear in bytes</param>
|
||||
FORCE_INLINE static void MemoryClear(void* dst, uint64 size)
|
||||
{
|
||||
SCRIPTING_EXPORT("FlaxEngine.Utils::MemoryClear")
|
||||
memset(dst, 0, static_cast<size_t>(size));
|
||||
}
|
||||
|
||||
@@ -207,6 +209,7 @@ public:
|
||||
/// <param name="size">Size of the memory to compare in bytes.</param>
|
||||
FORCE_INLINE static int32 MemoryCompare(const void* buf1, const void* buf2, uint64 size)
|
||||
{
|
||||
SCRIPTING_EXPORT("FlaxEngine.Utils::MemoryCompare")
|
||||
return memcmp(buf1, buf2, static_cast<size_t>(size));
|
||||
}
|
||||
|
||||
|
||||
@@ -1658,6 +1658,7 @@ DragDropEffect LinuxWindow::DoDragDrop(const StringView& data)
|
||||
|
||||
void LinuxClipboard::Clear()
|
||||
{
|
||||
SCRIPTING_EXPORT("FlaxEngine.Clipboard::Internal_Clear");
|
||||
SetText(StringView::Empty);
|
||||
}
|
||||
|
||||
|
||||
@@ -110,6 +110,7 @@ Float2 MacUtils::GetScreensOrigin()
|
||||
|
||||
void MacClipboard::Clear()
|
||||
{
|
||||
SCRIPTING_EXPORT("FlaxEngine.Clipboard::Internal_Clear");
|
||||
NSPasteboard* pasteboard = [NSPasteboard generalPasteboard];
|
||||
[pasteboard clearContents];
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ typedef struct _DROPFILES
|
||||
|
||||
void WindowsClipboard::Clear()
|
||||
{
|
||||
SCRIPTING_EXPORT("FlaxEngine.Clipboard::Internal_Clear");
|
||||
OpenClipboard(nullptr);
|
||||
EmptyClipboard();
|
||||
CloseClipboard();
|
||||
|
||||
Reference in New Issue
Block a user