Skip to content

Instantly share code, notes, and snippets.

View orangeduck's full-sized avatar

Daniel Holden orangeduck

View GitHub Profile
@orangeduck
orangeduck / loadimage.c
Created September 28, 2012 13:41 — forked from flightcrank/loadimage.c
sdl load image function
//Global variables
SDL_Surface *title_screen;
int load_image(char filename[], SDL_Surface **surface) {
SDL_Surface *temp;
//load image
temp = SDL_LoadBMP(filename);