1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00
planetblupi/blupi.h
2017-02-10 00:14:28 +01:00

51 lines
1.0 KiB
C

#pragma once
#include <SDL.h>
#include <libintl.h>
extern SDL_Window *g_window;
extern SDL_Renderer *g_renderer;
struct POINT
{
long x;
long y;
};
struct RECT
{
long left;
long top;
long right;
long bottom;
};
typedef unsigned long COLORREF;
#if defined(_WIN64)
typedef unsigned __int64 WPARAM;
typedef __int64 LPARAM;
#else
typedef unsigned int WPARAM;
typedef long LPARAM;
#endif
#define LOWORD(l) ((unsigned short)(((unsigned long)(l)) & 0xffff))
#define HIWORD(l) ((unsigned short)((((unsigned long)(l)) >> 16) & 0xffff))
#define MAX_PATH 260
#define VK_END 0x23
#define VK_LEFT 0x25
#define VK_UP 0x26
#define VK_RIGHT 0x27
#define VK_DOWN 0x28
#define WM_KEYDOWN 0x0100
#define WM_KEYUP 0x0101
#define WM_MOUSEMOVE 0x0200
#define WM_LBUTTONDOWN 0x0201
#define WM_LBUTTONUP 0x0202
#define WM_RBUTTONDOWN 0x0204
#define WM_RBUTTONUP 0x0205