-
Notifications
You must be signed in to change notification settings - Fork 2
/
gfx.h
37 lines (31 loc) · 815 Bytes
/
gfx.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*########################
###
### This Programm
### falls under the
### MIT Software
### license. Check
### COPYING for
### further
### information.
###
########################*/
#ifndef GFX_H
#define GFX_H
typedef struct GraphicsMode {
unsigned int width;
unsigned int height;
} GraphicsMode;
typedef struct {
GraphicsMode *modes;
int modecount;
GraphicsMode target;
GraphicsMode current;
} Graphics;
Graphics graphics;
SDL_Surface *display;
void gfx_init(void);
void gfx_shutdown(void);
void gfx_setmode(int w, int h, int fullscreen);
int gfx_fullscreenset(void);
void gfx_tooglefullscreen(void);
#endif