2018-04-18 07:27:37 +03:00
|
|
|
#pragma once
|
|
|
|
|
2018-04-18 12:05:19 +03:00
|
|
|
enum sdf_font {
|
|
|
|
SDF_FONT_THIN,
|
|
|
|
SDF_FONT_BOLD,
|
2018-05-08 05:27:44 +03:00
|
|
|
SDF_FONT_MONO,
|
2018-05-08 09:41:12 +03:00
|
|
|
SDF_FONT_MONO_BOLD,
|
|
|
|
SDF_FONT_MONO_OBLIQUE,
|
|
|
|
SDF_FONT_MONO_BOLD_OBLIQUE,
|
2018-04-18 12:05:19 +03:00
|
|
|
};
|
|
|
|
|
2018-04-21 10:28:57 +03:00
|
|
|
extern int draw_sdf_string(gfx_context_t * ctx, int32_t x, int32_t y, const char * str, int size, uint32_t color, int font);
|
|
|
|
extern int draw_sdf_string_width(const char * str, int size, int font);
|
2018-05-08 05:27:44 +03:00
|
|
|
extern int draw_sdf_string_gamma(gfx_context_t * ctx, int32_t x, int32_t y, const char * str, int size, uint32_t color, int font, double _gamma);
|