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