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
| // on Windows compile with: | |
| // cl.exe sdl2_pixels.c -Zi -Iinclude -link -incremental:no -subsystem:windows SDL2.lib SDL2main.lib shell32.lib | |
| #include <SDL.h> | |
| #include <math.h> | |
| int main(int argc, char* argv[]) | |
| { | |
| int width = 1280; | |
| int height = 720; |