if(SDL_Init(SDL_INIT_VIDEO)<0) { printf( "Window could not be created! SDL_Error: %s\n", SDL_GetError() ); return false; } //创建窗口 gWindow=SDL_CreateWindow("SHOW BMP",//窗口标题 SDL_WINDOWPOS_UNDEFINED,//窗口位置设置 SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH,//窗口的宽度 SCREEN_...
#include ""mainwindow.h""#include <QApplication>#include ""SDL2/SDL.h""#include <iostream>#undef mainusing namespace std;const int SCREEN_WIDTH = 640;const int SCREEN_HEIGHT = 480;int main(int argc, char *argv[]){ QApplication a(argc, argv); MainWindow w;// w.show(); //The ...