简单!
全部博文(366)
发布时间:2013-01-12 01:30:19
SDL的头文件一般在/usr/include/SDL里面(跟具体的安装路径有关),输入以下指令查找相关的同文件。$ find /usr/include -name SDL*.h/usr/include/SDL/SDL_keysym.h/usr/include/SDL/SDL_types.h/usr/include/SDL/SDL_mouse.h/usr/include/SDL/SDL_rwops.h/usr/include/SDL/SDL_opengl.h/usr/include/SDL/SDL_stdinc.h/usr......【阅读全文】
发布时间:2012-12-28 23:22:00
1、测试代码#include <stdbool.h>#include "SDL.h"const int WINDOW_WIDTH = 640;const int WINDOW_HEIGHT = 480;const char* WINDOW_TITLE = "SDL Start";int main(int argc, char **argv){ SDL_Init( SDL_INIT_VIDEO ); SDL_Surface* screen = SDL_SetVideoMode( WINDOW_WIDTH, WINDO......【阅读全文】