2023-12-21 14:20:00 -05:00
|
|
|
#ifndef UMORNA_RENDER
|
|
|
|
#define UMORNA_RENDER
|
|
|
|
|
2023-12-21 23:08:09 -05:00
|
|
|
#define BASE_SIZE ( 16)
|
|
|
|
#define ICON_SIZE ( 32)
|
|
|
|
#define FONT_SIZE ( 24)
|
|
|
|
#define SIDE_SIZE (480)
|
2023-12-21 13:03:16 -05:00
|
|
|
|
|
|
|
enum {
|
2023-12-29 07:14:30 -05:00
|
|
|
neonui, ui, overui, orcs, humans, elves, ashlands,
|
2023-12-21 13:03:16 -05:00
|
|
|
render_texture_count
|
|
|
|
};
|
|
|
|
|
2023-12-30 06:33:33 -05:00
|
|
|
enum {
|
|
|
|
signal_none,
|
|
|
|
signal_up, signal_down, signal_left, signal_right, signal_escape, signal_tabulator, signal_return, signal_new_line,
|
|
|
|
signal_a, signal_b, signal_c, signal_d, signal_e, signal_f, signal_g, signal_h,
|
|
|
|
signal_i, signal_j, signal_k, signal_l, signal_m, signal_n, signal_o, signal_p,
|
|
|
|
signal_q, signal_r, signal_s, signal_t, signal_u, signal_v, signal_w, signal_x,
|
|
|
|
signal_y, signal_z, signal_0, signal_1, signal_2, signal_3, signal_4, signal_5,
|
|
|
|
signal_6, signal_7, signal_8, signal_9, signal_l_bracket, signal_r_bracket, signal_minus, signal_equal,
|
|
|
|
signal_slash, signal_backslash, signal_quote, signal_backquote, signal_space, signal_backspace, signal_dot, signal_comma,
|
|
|
|
signal_cite, signal_caps_lock,
|
|
|
|
signal_count
|
|
|
|
};
|
|
|
|
|
2023-12-21 20:19:30 -05:00
|
|
|
extern float render_zoom;
|
2023-12-30 03:23:42 -05:00
|
|
|
extern int render_active;
|
2023-12-21 20:19:30 -05:00
|
|
|
|
2023-12-30 06:33:33 -05:00
|
|
|
extern int signal;
|
|
|
|
|
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);
|
|
|
|
|
2023-12-30 03:23:42 -05:00
|
|
|
extern void render_configure (void);
|
|
|
|
extern void render_synchronize (void);
|
2023-12-21 14:20:00 -05:00
|
|
|
|
|
|
|
#endif
|