resource/font: make possible to specify pos as cmplx in TextParams

This commit is contained in:
Andrei Alexeyev 2023-04-07 03:30:30 +02:00
parent df6b97caf7
commit 6242961ccc
No known key found for this signature in database
GPG key ID: 72D26128040B9690

View file

@ -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];