dice-gui-old/src/resources.h
2025-09-18 12:11:13 +02:00

35 lines
534 B
C

#ifndef RESOURCES_H
#define RESOURCES_H
#include "dice.h"
#include <SDL3/SDL_render.h>
#include <SDL3_ttf/SDL_ttf.h>
enum Font {
FONT_DEFAULT = 0,
FONT_BOLD = 1,
FONT_MAX
};
enum DiceImages {
COIN_IMAGE = 0,
D4_IMAGE = 1,
D6_IMAGE,
D8_IMAGE,
D10_IMAGE,
D12_IMAGE,
D20_IMAGE,
DICE_IMAGE_MAX
};
extern TTF_TextEngine *textEngine;
extern TTF_Font *fonts[FONT_MAX];
extern SDL_Texture *diceImages[DICE_IMAGE_MAX];
extern void LoadResources();
extern SDL_Texture *GetDiceImage(enum Die_Dice die);
#endif // !RESOURCES_H