Skip to content

Instantly share code, notes, and snippets.

View miketsukerman's full-sized avatar
🚲
cycling

Michael Tsukerman miketsukerman

🚲
cycling
View GitHub Profile
@miketsukerman
miketsukerman / sdl2_pixels.c
Created January 18, 2025 14:34 — forked from mmozeiko/sdl2_pixels.c
drawing pixels with SDL
// 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;