-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathscreen.h
45 lines (38 loc) · 1.1 KB
/
screen.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
38
39
40
41
42
43
44
45
/*
* EffecTV - Realtime Digital Video Effector
* Copyright (C) 2001-2006 FUKUCHI Kentaro
*
* screen.h: header for screen manager
*
*/
#ifndef __SCREEN_H__
#define __SCREEN_H__
#include <SDL/SDL.h>
extern SDL_Surface *screen; /* display surface */
extern int stretch; /* flag for stretching requirement */
extern int doublebuf; /* flag for double buffering */
extern int fullscreen; /* flag for fullscreen mode */
extern int hwsurface; /* flag for hardware surface */
extern int screen_width;
extern int screen_height;
extern int screen_scale;
/* description of these functions are in screen.c */
int screen_init(int w, int h, int s);
void screen_quit(void);
int screen_bpp(void);
void screen_setcaption(const char *str);
void screen_clear(int color);
void screen_fullscreen(void);
int screen_lock(void);
void screen_unlock(void);
#ifndef RGB_BGR_CONVERSION
#define screen_getaddress() (screen->pixels)
#else
unsigned char *screen_getaddress(void);
#endif
#ifndef RGB_BGR_CONVERSION
#define screen_update() (SDL_Flip(screen))
#else
int screen_update(void);
#endif
#endif /* __SCREEN_H__ */