Skip to content

Instantly share code, notes, and snippets.

View arkdracco's full-sized avatar

Dev Leandro Coimbra arkdracco

View GitHub Profile
@jrdmcgr
jrdmcgr / sdl-test.c
Created October 31, 2013 16:49
Move a red square around with the arrow keys.
#include "SDL2/SDL.h"
#include <stdio.h>
void clear(SDL_Renderer * renderer) {
SDL_SetRenderDrawColor(renderer, 0, 0, 255, 255);
SDL_RenderClear(renderer);
SDL_RenderPresent(renderer);
}