Files
Aerofoil/GpCommon/GpWindows.h

36 lines
957 B
C
Raw Normal View History

2019-12-22 00:35:30 -05:00
#pragma once
#define NOMINMAX
#define WIN32_LEAN_AND_MEAN
#define OEMRESOURCE
#include <Windows.h>
#undef CreateMutex
#undef DeleteFile
2020-02-23 20:21:04 -05:00
#undef LoadCursor
2020-09-11 23:53:25 -04:00
#undef CreateFile
2020-02-23 20:21:04 -05:00
struct IGpBWCursor_Win32;
struct IGpCursor_Win32;
2021-04-28 01:46:07 -04:00
struct IGpAllocator;
2019-12-24 02:35:24 -05:00
struct IGpVOSEventQueue;
2019-12-22 00:35:30 -05:00
struct GpWindowsGlobals
{
HINSTANCE m_hInstance;
HINSTANCE m_hPrevInstance;
LPCWSTR m_cmdLine;
int m_cmdLineArgc;
LPWSTR *m_cmdLineArgv;
2019-12-22 00:35:30 -05:00
LPCWSTR m_baseDir;
HWND m_hwnd;
2020-05-18 04:05:18 -04:00
HICON m_hIcon;
HICON m_hIconSm;
2019-12-22 00:35:30 -05:00
int m_nCmdShow;
2021-04-28 01:46:07 -04:00
IGpCursor_Win32 *(*m_createColorCursorFunc)(IGpAllocator *alloc, size_t width, size_t height, const void *pixelDataRGBA, size_t hotSpotX, size_t hotSpotY);
IGpCursor_Win32 *(*m_createBWCursorFunc)(IGpAllocator *alloc, size_t width, size_t height, const void *pixelData, const void *maskData, size_t hotSpotX, size_t hotSpotY);
void (*m_translateWindowsMessageFunc)(const MSG *msg, IGpVOSEventQueue *eventQueue, float pixelScaleX, float pixelScaleY);
};