Skip to content

Instantly share code, notes, and snippets.

View ajbkr's full-sized avatar

Andrew J. Baker ajbkr

View GitHub Profile
@ajbkr
ajbkr / circleRGBA.cpp
Created June 15, 2012 18:43
library_sdl.js including circleRGBA() function
#include <SDL/SDL.h>
#include <SDL/SDL_gfxPrimitives.h>
int main()
{
SDL_Init(SDL_INIT_VIDEO);
SDL_Surface* surf = SDL_SetVideoMode(320, 200, 32, SDL_SWSURFACE);
circleRGBA(surf, 160, 100, 100, 255, 255, 255, 255);
SDL_Flip(surf);
SDL_Quit();