Created
January 24, 2024 13:20
-
-
Save mohamedelbachir/2cd6c5693b89efe06fd1555da8a7922b to your computer and use it in GitHub Desktop.
Simple template SDL Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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