Skip to content
Snippets Groups Projects
Commit ebe7f9b5 authored by MANZI Didier's avatar MANZI Didier
Browse files

Initial commit

parents
No related branches found
No related tags found
Loading
main 0 → 100755
File added
main.cpp 0 → 100755
#include <iostream>
#include <SDL2/SDL.h>
const int WIDTH = 800, HEIGHT = 600;
int main( int argc, char *argv[] )
{
if ( SDL_Init( SDL_INIT_EVERYTHING ) < 0 )
{
std::cout << "SDL could not initialise! SDL Error: " << SDL_GetError() << std::endl;
}
SDL_Window *window = SDL_CreateWindow( "Hello", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, WIDTH, HEIGHT,
SDL_WINDOW_ALLOW_HIGHDPI);
if ( NULL == window )
{
std::cout << "Pas de window cre" << SDL_GetError() << std::endl;
}
SDL_Event windowEvent ;
while (true)
{
if (SDL_PollEvent( &windowEvent))
{
if (SDL_QUIT == windowEvent.type)
{
break;
}
}
}
SDL_DestroyWindow(window);
SDL_Quit();
return EXIT_SUCCESS;
}
File added
pictures/Background.png

6.67 KiB

pictures/dirt.png

867 B

pictures/goumbah.png

1.06 KiB

pictures/grass.png

972 B

pictures/pikpik.png

816 B

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment