00001
00016
00017
00018 #ifndef BULL_BULCOMMN_H
00019 #define BULL_BULCOMMN_H
00020
00021 #include "globals.h"
00022
00023
00024
00025 DLLIMPORT unsigned int rnd(const unsigned int range);
00026
00027 DLLIMPORT short write_bmp_fn_idx (const char *fname, int width, int height, const unsigned char *pal,
00028 const char *data, int red, int green, int blue, int mult);
00029 DLLIMPORT short write_bmp_fp_idx (FILE *out, int width, int height,
00030 const unsigned char *pal, const char *data,
00031 int red, int green, int blue, int mult);
00032 DLLIMPORT short write_bmp_fn_24b (const char *fname, int width, int height, const char *data);
00033 DLLIMPORT short write_bmp_fp_24b (FILE *out, int width, int height, const char *data);
00034
00035 DLLIMPORT int read_palette_rgb(unsigned char *palette, const char *fname, unsigned int nColors);
00036
00037 int rnc_compressed_buf (unsigned char *buff);
00038 int rnc_compressed_file (FILE *fp);
00039
00040 #endif