16 const double PAI = 3.1415926535897931;
17 const double DEG = PAI / 180;
20 #pragma comment(lib, "SDL2.lib")
21 #pragma comment(lib, "SDL2main.lib")
22 #pragma comment(lib, "SDL2_image.lib")
23 #pragma comment(lib, "SDL2_mixer.lib")
24 #pragma comment(lib, "SDL2_ttf.lib")
26 #pragma execution_character_set("utf-8")//charの文字コードをUTF-8に変更
29 #pragma comment(linker, "/NODEFAULTLIB:msvcrt.lib")
33 #include <SDL_image.h>
34 #include <SDL_mixer.h>
37 using ImageHandle = SDL_Texture*;
38 using SoundHandle = Mix_Chunk*;
39 using ScreenHandle = SDL_Renderer*;
40 using WindowHandle = SDL_Window*;
41 using StickHandle = SDL_Joystick*;
42 using FontHandle = TTF_Font*;
43 using ColorData = SDL_Color;
45 #define NULL_HANDLE nullptr
49 #elif defined(__IPHONEOS__)
57 #define sprintf_s(a,b,c,d) sprintf(a,c,d)
58 #define localtime_s(a,b) a = localtime(b)