| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
. |
| 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 |