Main Page | Data Structures | Directories | File List | Data Fields | Globals

pixmap.h

Go to the documentation of this file.
00001 /* ---------------------------------------------------------------------- *
00002  * pixmap.h
00003  * This file is part of lincity.
00004  * Lincity is copyright (c) I J Peters 1995-1997, (c) Greg Sharp 1997-2001.
00005  * ---------------------------------------------------------------------- */
00006 #ifndef __pixmap_h__
00007 #define __pixmap_h__
00008 
00009 /* ---------------------------------------------------------------------- *
00010  * Public Global Variables
00011  * ---------------------------------------------------------------------- */
00012 extern char* pixmap;
00013 extern int pixmap_height;
00014 extern int pixmap_width;
00015 
00016 /* ---------------------------------------------------------------------- *
00017  * Public Fn Prototypes
00018  * ---------------------------------------------------------------------- */
00019 void initialize_pixmap (void);
00020 void resize_pixmap (int new_width, int new_height);
00021 int pixmap_getpixel (int x, int y);
00022 inline int pixmap_index (int x, int y);
00023 int pixmap_getpixel (int x, int y);
00024 void pixmap_setpixel (int x, int y, int col);
00025 void pixmap_hline (int x1, int y1, int x2, int col);
00026 void pixmap_vline (int x1, int y1, int y2, int col);
00027 void pixmap_fillbox (int x, int y, int w, int h, int col);
00028 void pixmap_putbox (char* src, int src_x, int src_y, int src_w,
00029                     int dst_x, int dst_y, int w, int h);
00030 void free_pixmap (void);
00031 
00032 /* ---------------------------------------------------------------------- *
00033  * Public Inline Functions
00034  * ---------------------------------------------------------------------- */
00035 #if defined (WIN32)
00036 inline int 
00037 pixmap_index (int x, int y) {
00038     return y*pixmap_width + x;
00039 }
00040 #endif
00041 
00042 #endif  /* __pixmap_h__ */

Generated on Sun Dec 26 11:23:26 2004 for lincity by  doxygen 1.3.9.1