Debian Codegraph @

terps/plus/graphics.h

raw symbols SCIP
1 //
2 // graphics.h
3 // Part of Plus, an interpreter for Scott Adams Graphic Adventures Plus
4 //
5 // Created by Petter Sjölund on 2022-06-04.
6 //
7
8 #ifndef graphics_h
9 #define graphics_h
10
11 #include <stdio.h>
12
13 #include "glk.h"
14
15 typedef uint8_t RGB[3];
16 typedef RGB PALETTE[16];
17
18 extern winid_t Graphics;
19
20 extern int pixel_size;
21 extern int ImageWidth, ImageHeight;
22 extern int x_offset, y_offset, right_margin;
23 extern int upside_down;
24
25 extern int x, y;
26 extern int xlen, ylen;
27 extern int xoff, yoff;
28
29 int DrawCloseup(int item);
30 void DrawCurrentRoom(void);
31 int DrawRoomImage(int room);
32 void DrawItemImage(int item);
33 int DrawImageWithName(char *filename);
34 char *ShortNameFromType(char type, int index);
35 void SetColor(int32_t index, const RGB *color);
36 void PutPixel(glsi32 xpos, glsi32 ypos, int32_t color);
37 void PutDoublePixel(glsi32 xpos, glsi32 ypos, int32_t color);
38
39 #endif /* graphics_h */