随笔分类 - SDL
摘要:#define prt(s, format)(printf("您按下的是:%"#format"\n", s)) const char* keys[] = { "F1", "F2", "F3", "F4", "F5" }; //事件循环 SDL_Event e; bool quit = false;
阅读全文
摘要:#include <stdio.h> #include "include/SDL/SDL.h" //主窗口 SDL_Window* gWindow = NULL; //主窗口内含的主表面 SDL_Surface* gScreenSurface = NULL; //图片表面 SDL_Surface*
阅读全文