Last change
on this file since 483 was
49,
checked in by Sam Hocevar, 15 years ago
|
- Imported original public domain release, for future reference.
|
File size:
555 bytes
|
Rev | Line | |
---|
[49] | 1 | #ifndef _VIDEO_HPP_ |
---|
| 2 | #define _VIDEO_HPP_ |
---|
| 3 | #include "system.h" |
---|
| 4 | #include "image.hpp" |
---|
| 5 | #include "globals.hpp" |
---|
| 6 | |
---|
| 7 | enum video_mode { VMODE_320x200, VMODE_640x480 }; |
---|
| 8 | |
---|
| 9 | extern unsigned char current_background; |
---|
| 10 | extern int xoff,yoff; |
---|
| 11 | extern image *screen; |
---|
| 12 | |
---|
| 13 | void set_mode(video_mode mode, int argc=0, char **argv=NULL); |
---|
| 14 | void switch_mode(video_mode new_mode); |
---|
| 15 | void close_graphics(); |
---|
| 16 | void fill_image(image *im, int x1, int y1, int x2, int y2); |
---|
| 17 | void update_dirty(image *im, int xoff=0, int yoff=0); |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | void clear_put_image(image *im, int x, int y); |
---|
| 21 | int get_vmode(); |
---|
| 22 | |
---|
| 23 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.