| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
. |
| 6 |
|
| 7 |
|
| 8 |
#ifndef sagadraw_h |
| 9 |
#define sagadraw_h |
| 10 |
|
| 11 |
#include "glk.h" |
| 12 |
#include "taylor.h" |
| 13 |
|
| 14 |
typedef struct { |
| 15 |
uint8_t *imagedata; |
| 16 |
size_t datasize; |
| 17 |
uint8_t xoff; |
| 18 |
uint8_t yoff; |
| 19 |
uint8_t width; |
| 20 |
uint8_t height; |
| 21 |
} Image; |
| 22 |
|
| 23 |
uint8_t *DrawSagaPictureFromData(uint8_t *dataptr, int xsize, int ysize, |
| 24 |
int xoff, int yoff, size_t datasize); |
| 25 |
|
| 26 |
void DrawSagaPictureNumber(int picture_number); |
| 27 |
void DrawSagaPictureFromBuffer(void); |
| 28 |
void DrawSagaPictureAtPos(int picture_number, int x, int y); |
| 29 |
|
| 30 |
void SagaSetup(void); |
| 31 |
|
| 32 |
void PutPixel(glsi32 x, glsi32 y, int32_t color); |
| 33 |
void RectFill(int32_t x, int32_t y, int32_t width, int32_t height, |
| 34 |
int32_t color, int usebuffer); |
| 35 |
|
| 36 |
void DefinePalette(void); |
| 37 |
|
| 38 |
void DrawTaylor(int loc); |
| 39 |
void ClearGraphMem(void); |
| 40 |
int32_t Remap(int32_t color); |
| 41 |
|
| 42 |
void PatchAndDrawQP3Cannon(void); |
| 43 |
|
| 44 |
extern palette_type palchosen; |
| 45 |
|
| 46 |
extern int white_colour; |
| 47 |
extern int blue_colour; |
| 48 |
|
| 49 |
extern glui32 pixel_size; |
| 50 |
extern glui32 x_offset; |
| 51 |
|
| 52 |
#endif |