resource/font: make possible to specify pos as cmplx in TextParams
This commit is contained in:
parent
df6b97caf7
commit
6242961ccc
1 changed files with 4 additions and 1 deletions
|
@ -64,7 +64,10 @@ typedef struct TextParams {
|
|||
GlyphDrawCallback func;
|
||||
void *userdata;
|
||||
} glyph_callback;
|
||||
struct { double x, y; } pos;
|
||||
union {
|
||||
struct { double x, y; };
|
||||
cmplx as_cmplx;
|
||||
} pos;
|
||||
const Color *color;
|
||||
const ShaderCustomParams *shader_params;
|
||||
Texture *aux_textures[R_NUM_SPRITE_AUX_TEXTURES];
|
||||
|
|
Loading…
Reference in a new issue