added a README

This commit is contained in:
Return0ne 2021-08-01 13:20:07 -04:00
parent 2b67dc0dc6
commit ffd54f9303
2 changed files with 11 additions and 1 deletions

10
README.md Normal file
View file

@ -0,0 +1,10 @@
This is a test program for the SDL2 C++ lib
To build you need to have SDL2 g++ and make installed
Build steps
1.git clone https://gitdab.com/Canneddonuts/SDL2_Test
2.cd SDL2_Test
3.make

View file

@ -18,7 +18,7 @@ int main( int argc, char* args[] ){
printf("Ooops SDL could not start! SDL_Error: %s\n", SDL_GetError() );
} else {
//make window
window = SDL_CreateWindow( "My First SDL2 Program", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN );
window = SDL_CreateWindow( "My First SDL2 Window", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN );
if( window == NULL ){
printf("Oh no the Window could not be made! SDL_Error: %s\n", SDL_GetError() );
} else {