mirror of
https://github.com/smyalygames/checklist-tester.git
synced 2025-09-13 12:22:19 +02:00
45 lines
908 B
C++
45 lines
908 B
C++
#include <XPLMProcessing.h>
|
|
|
|
#if IBM
|
|
#include <windows.h>
|
|
BOOL APIENTRY DllMain( HANDLE hModule,
|
|
DWORD ul_reason_for_call,
|
|
LPVOID lpReserved
|
|
)
|
|
{
|
|
switch (ul_reason_for_call)
|
|
{
|
|
case DLL_PROCESS_ATTACH:
|
|
case DLL_THREAD_ATTACH:
|
|
case DLL_THREAD_DETACH:
|
|
case DLL_PROCESS_DETACH:
|
|
break;
|
|
}
|
|
return TRUE;
|
|
}
|
|
#endif
|
|
#if LIN
|
|
#include <GL/gl.h>
|
|
#elif __GNUC__
|
|
#include <OpenGL/gl.h>
|
|
#else
|
|
#include <GL/gl.h>
|
|
#endif
|
|
|
|
#ifndef XPLM401
|
|
#error This is made to be compiled against the XPLM400 SDK
|
|
#endif
|
|
|
|
PLUGIN_API int XPluginStart(char * outName, char * outSignature, char * outDescription) {
|
|
return 0;
|
|
}
|
|
|
|
PLUGIN_API int XPluginEnable(void) {
|
|
return 1;
|
|
}
|
|
|
|
PLUGIN_API void XPluginReceiveMessage(XPLMPluginID inFrom, int inMsg, void * inParam) { }
|
|
|
|
PLUGIN_API void XPluginDisable(void) { }
|
|
|
|
PLUGIN_API void XPluginStop(void) { } |