mirror of
https://github.com/AntonioND/nitro-engine.git
synced 2025-06-18 08:35:44 -04:00
![]() This switches the rich text library from using a constant for the max number of fonts to allowing the user to specify how many fonts should be used dynamically. To accomplish this, a new method is introduced to the rich text system: `NE_RichTextStartSystem`, which accepts the number of slots to allocate. Those slots are allocated and then freed when `NE_RichTextResetSystem` is called. To maintain compatibility, I have not removed `NE_MAX_RICH_TEXT_FONTS` (instead opting to mark it as deprecated), and have added functionality to automatically call `NE_RichTextStartSystem` with that old value (8) if the user decides to init a rich text slot before calling `NE_RichTextStartSystem` (which would likely be the previous default behavior). |
||
---|---|---|
.. | ||
2d_system | ||
assets | ||
effects | ||
loading | ||
other | ||
physics | ||
templates | ||
text | ||
.gitignore | ||
assets.sh | ||
Makefile | ||
Makefile.example |