2023-12-21 14:20:00 -05:00
|
|
|
#ifndef UMORNA_RENDER
|
|
|
|
#define UMORNA_RENDER
|
|
|
|
|
2023-12-21 13:03:16 -05:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <raylib.h>
|
|
|
|
|
|
|
|
#define BASE_SIZE (16)
|
|
|
|
#define ICON_SIZE (32)
|
|
|
|
#define FONT_SIZE (24)
|
|
|
|
|
|
|
|
enum {
|
2023-12-21 16:59:45 -05:00
|
|
|
neonui,
|
2023-12-21 14:20:00 -05:00
|
|
|
ui, traits, skills, values, orcs, humans, elves, ashlands,
|
2023-12-21 20:19:30 -05:00
|
|
|
base_1, base_2,
|
2023-12-21 13:03:16 -05:00
|
|
|
render_texture_count
|
|
|
|
};
|
|
|
|
|
2023-12-21 20:19:30 -05:00
|
|
|
extern float render_zoom;
|
|
|
|
|
2023-12-21 13:03:16 -05:00
|
|
|
extern Texture2D render_texture [render_texture_count];
|
|
|
|
|
2023-12-21 14:20:00 -05:00
|
|
|
extern int render_width (void);
|
|
|
|
extern int render_height (void);
|
|
|
|
|
2023-12-21 13:03:16 -05:00
|
|
|
extern void render_sprite (int sprite, int x, int y, int u, int v, int width, int height);
|
|
|
|
extern void render_string (char * string, int x, int y);
|
|
|
|
|
|
|
|
extern void render_configure (void);
|
2023-12-21 14:20:00 -05:00
|
|
|
|
|
|
|
#endif
|