aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.h
blob: 7e75cffe8d5e59f44bd5ce151d1647c12935fbe9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Copyright (c) 2019-2021, yzrh <yzrh@noema.org>
 *
 * SPDX-License-Identifier: Apache-2.0
 */

typedef struct {
	SDL_Texture *texture;
	SDL_Rect pos;
	bool cache;
} Snake_Text;

typedef enum {
	SNAKE_FOREGROUND,
	SNAKE_BACKGROUND,
	SNAKE_BACKGROUND_SHADE,
	SNAKE_RED,
	SNAKE_GREEN,
	SNAKE_BLUE,
	SNAKE_YELLOW,
	SNAKE_MAGENTA,
	SNAKE_CYAN,
	SNAKE_WHITE,
	SNAKE_BLACK
} Snake_Colour;