From b9b74e88028f81e7b169a5e168102138e8c2c46c Mon Sep 17 00:00:00 2001 From: yzrh Date: Sat, 10 Oct 2020 17:16:14 +0000 Subject: Initial commit. --- src/renderer.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/renderer.h (limited to 'src/renderer.h') diff --git a/src/renderer.h b/src/renderer.h new file mode 100644 index 0000000..b6de4d8 --- /dev/null +++ b/src/renderer.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2019-2020, yzrh + * + * 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; -- cgit v1.2.3