home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega Top 1
/
os2_top1.zip
/
os2_top1
/
APPS
/
RAYTRACE
/
RT
/
FIO.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-12
|
660b
|
31 lines
/*
FIO.H Interface to new bitmap file IO
*/
typedef void BITMAP;
extern void fio_init(void);
extern void fio_deinit(void);
extern BITMAP *fio_create_bitmap(int w, int h);
extern BITMAP *fio_copy_bitmap(BITMAP *bitmap);
extern void fio_destroy_bitmap(BITMAP *bitmap);
extern BITMAP *fio_read_bitmap(char *fn);
extern BOOLEAN fio_write_bitmap(BITMAP *bitmap, char *fn);
extern void fio_get_pixel(
BITMAP *bitmap,
int x, int y,
byte *r, byte *g, byte *b
);
extern void fio_set_pixel(
BITMAP *bitmap,
int x, int y,
byte r, byte g, byte b
);
extern int fio_width(BITMAP *bitmap);
extern int fio_height(BITMAP *bitmap);