source: abuse/tags/pd/macabuse/imlib/include/video.hpp @ 49

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