added a README
This commit is contained in:
parent
2b67dc0dc6
commit
ffd54f9303
2 changed files with 11 additions and 1 deletions
10
README.md
Normal file
10
README.md
Normal 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
|
||||||
|
|
|
@ -18,7 +18,7 @@ int main( int argc, char* args[] ){
|
||||||
printf("Ooops SDL could not start! SDL_Error: %s\n", SDL_GetError() );
|
printf("Ooops SDL could not start! SDL_Error: %s\n", SDL_GetError() );
|
||||||
} else {
|
} else {
|
||||||
//make window
|
//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 ){
|
if( window == NULL ){
|
||||||
printf("Oh no the Window could not be made! SDL_Error: %s\n", SDL_GetError() );
|
printf("Oh no the Window could not be made! SDL_Error: %s\n", SDL_GetError() );
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue