Add comments about unused RenFont data field

This commit is contained in:
Francesco Abbate 2021-03-20 23:05:09 +01:00
parent 15a4985065
commit e160ed4e5e
1 changed files with 4 additions and 1 deletions

View File

@ -18,8 +18,11 @@ struct GlyphSet {
};
typedef struct GlyphSet GlyphSet;
/* The field "padding" below must be there just before GlyphSet *sets[MAX_GLYPHSET]
because the field "sets" can be indexed and writted with an index -1. For this
reason the "padding" field must be there but is never explicitly used. */
struct RenFont {
void *data;
GlyphSet *padding;
GlyphSet *sets[MAX_GLYPHSET];
float size;
int height;