You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
444 B
19 lines
444 B
/* video.h - Initializes and updates the window. */ |
|
|
|
#ifndef _VIDEO_H_ |
|
#define _VIDEO_H_ |
|
|
|
#include <SDL.h> |
|
#include "defs.h" |
|
|
|
#define RGB(r, g, b) (0xFF000000 | (r << 16) | (g << 8) | b) |
|
#define POS(x, y) ((RENDER_WIDTH * y) + x) |
|
|
|
extern Uint32 *pixels; |
|
|
|
void video_close(); |
|
int video_init(const char *title, int render_width, int render_height, |
|
int window_width, int window_height); |
|
void video_update(); |
|
|
|
#endif /* _VIDEO_H_ */
|
|
|