2
2
#define __VIDEODRIVER_H__
4
4
#include "../config.h"
10
SDL_Surface * init(int width, int height, int fullscreen);
11
unsigned int initSurface(SDL_Surface * _surf);
12
unsigned int initSurface(cairo_surface_t * _surf);
13
void updateSurface(unsigned int _id, SDL_Surface * _surf);
14
void updateSurface(unsigned int _id, cairo_surface_t * _surf);
15
void drawSurface(unsigned int _id, int _x=0, int _y=0);
11
SDL_Surface* init(int width, int height, int fullscreen);
12
unsigned int initSurface(SDL_Surface* _surf);
13
unsigned int initSurface(cairo_surface_t* _surf);
14
void updateSurface(unsigned int _id, SDL_Surface* _surf);
15
void updateSurface(unsigned int _id, cairo_surface_t* _surf);
16
void drawSurface(unsigned int _id, int _x=0, int _y=0);
16
17
void drawSurface(cairo_surface_t* _surf, int _x=0, int _y=0);
17
18
void drawSurface(SDL_Surface* _surf, int _x=0, int _y=0);
22
std::vector <unsigned int> texture_list;
23
std::vector <SDL_Surface*> surface_list;
24
std::vector <cairo_surface_t*> cairo_list;
23
std::vector<unsigned int> texture_list;
24
std::vector<SDL_Surface*> surface_list;
25
std::vector<cairo_surface_t*> cairo_list;