Files
rive-cpp/tests/unreal/Plugins/GM/Source/ThirdParty/GMLibrary/ExampleLibrary.cpp
blakdragan7 fc31e5e757 Prep for rhi
Many changes to add in support for Unreal RHI
This is the first step. Afterwords we need more changes such as finalizing the for_unreal switch to premake.

Diffs=
1cc5f2b6f Prep for rhi (#8270)

Co-authored-by: Jonathon Copeland <jcopela4@gmail.com>
2024-10-10 00:00:05 +00:00

23 lines
554 B
C++

#if defined _WIN32 || defined _WIN64
#include <Windows.h>
#define EXAMPLELIBRARY_EXPORT __declspec(dllexport)
#else
#include <stdio.h>
#endif
#ifndef EXAMPLELIBRARY_EXPORT
#define EXAMPLELIBRARY_EXPORT
#endif
EXAMPLELIBRARY_EXPORT void ExampleLibraryFunction()
{
#if defined _WIN32 || defined _WIN64
MessageBox(NULL,
TEXT("Loaded ExampleLibrary.dll from Third Party Plugin sample."),
TEXT("Third Party Plugin"),
MB_OK);
#else
printf("Loaded ExampleLibrary from Third Party Plugin sample");
#endif
}