Skip to content

Instantly share code, notes, and snippets.

@Twinklebear
Twinklebear / main.cpp
Last active June 27, 2025 01:14
Example of render to texture with SDL2
#include <iostream>
#ifdef __linux__
#include <SDL2/SDL.h>
#elif defined(_WIN32)
#include <SDL.h>
#endif
const int WIN_WIDTH = 640;
const int WIN_HEIGHT = 480;