rotagon/sdl.c
Frank Villaro-Dixon a9fae6dff0 patterns and things
2015-01-01 13:46:13 +01:00

24 lines
424 B
C

/*
** sdl.c - <+DESC+>
**
** 2014 - Frank Villaro-Dixon <Frank@Villaro-Dixon.eu>
*/
#include <stdio.h>
#include <stdlib.h>
#include "SDL/SDL.h"
#include "game.h"
void
init_SDL(struct s_game *g)
{
/* initialize SDL */
SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO);
/* set the title bar */
SDL_WM_SetCaption("SDL Move", "SDL Move");
/* create window */
g->screen = SDL_SetVideoMode(SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0);
}