Debian Codegraph @

terps/scott/ai_uk/sagadraw.h

raw symbols SCIP
1 //
2 // sagadraw.h
3 // part of ScottFree, an interpreter for adventures in Scott Adams format
4 //
5 // Created by Petter Sjölund on 2021-12-15.
6 //
7
8 #ifndef sagadraw_h
9 #define sagadraw_h
10
11 #include "glk.h"
12 #include "scottdefines.h"
13
14 typedef struct {
15 uint8_t *imagedata;
16 uint8_t xoff;
17 uint8_t yoff;
18 uint8_t width;
19 uint8_t height;
20 } Image;
21
22 uint8_t *DrawSagaPictureFromData(uint8_t *dataptr, int xsize, int ysize,
23 int xoff, int yoff);
24
25 void DrawSagaPictureNumber(int picture_number);
26 void DrawSagaPictureAtPos(int picture_number, int x, int y);
27 void DrawSagaPictureFromBuffer(void);
28 void Flip(uint8_t character[]);
29
30 void SagaSetup(size_t imgoffset);
31
32 void RectFill(int32_t x, int32_t y, int32_t width, int32_t height,
33 int32_t color);
34
35 void SwitchPalettes(int pal1, int pal2);
36 void DefinePalette(void);
37 int32_t Remap(int32_t color);
38
39 extern palette_type palchosen;
40
41 extern int white_colour;
42 extern int blue_colour;
43 extern glui32 dice_colour;
44
45 #endif /* sagadraw_h */