Skip to content

Instantly share code, notes, and snippets.

@mohamedelbachir
Created January 24, 2024 13:20
Show Gist options
  • Save mohamedelbachir/2cd6c5693b89efe06fd1555da8a7922b to your computer and use it in GitHub Desktop.
Save mohamedelbachir/2cd6c5693b89efe06fd1555da8a7922b to your computer and use it in GitHub Desktop.
Simple template SDL Code
#include<SDL.h>
#include<iostream>
#include<cstdlib>
int main(int argc, char **argv){
if(SDL_INIT(SDL_INIT_VIDEO)<0){
std::cout<<"impossible to initialize SDL"<<std::endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment