第一个有结构的黑窗口为了记忆函数。
#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;
}