由于我一直记不住SDL的结构体类型名
和函数
我助记一下的
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
int main(int,char**){
SDL_Renderer*renderer;
SDL_Window*win=NULL;
SDL_Surface*hello=NULL;
SDL_Surface*world=NULL;
SDL_Init(SDL_INIT_EVERYTHING);
win=SDL_CreateWindow("myhw",0,0,400,500,0);
hello=IMG_Load("/sdcard/DCIM/ 6.jpg");
SDL_FreeSurface(hello);
SDL_Delay(2000);
SDL_Quit();
return 0;
}
和函数
我助记一下的
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
int main(int,char**){
SDL_Renderer*renderer;
SDL_Window*win=NULL;
SDL_Surface*hello=NULL;
SDL_Surface*world=NULL;
SDL_Init(SDL_INIT_EVERYTHING);
win=SDL_CreateWindow("myhw",0,0,400,500,0);
hello=IMG_Load("/sdcard/DCIM/ 6.jpg");
SDL_FreeSurface(hello);
SDL_Delay(2000);
SDL_Quit();
return 0;
}