You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the future, I want some buttons or other things with custom icons. All icons should be saved in individual files and then baked into one big file using a script. There are two options:
Option 1: A font
When I can create a font with all the icons and then import it into ImGui correctly, This section of the Dear ImGui docs demonstrate the usage of colorful emojis so it should work. I also want to be able to use the icons somewhere else (like in a 2d_overlay) so there must be a possibility to get the texture ID of the ImGui font atlas and the UV coords of a specific glyph.
This is the preferred way.
Option 2: A separate texture
Write a python script to bake all icons into one texture, generate code for their coordinates and use it like this. Only works if there's a possibility to make a ImageButton with text and image.
The text was updated successfully, but these errors were encountered:
In the future, I want some buttons or other things with custom icons. All icons should be saved in individual files and then baked into one big file using a script. There are two options:
Option 1: A font
When I can create a font with all the icons and then import it into ImGui correctly, This section of the Dear ImGui docs demonstrate the usage of colorful emojis so it should work. I also want to be able to use the icons somewhere else (like in a
2d_overlay
) so there must be a possibility to get the texture ID of the ImGui font atlas and the UV coords of a specific glyph.This is the preferred way.
Option 2: A separate texture
Write a python script to bake all icons into one texture, generate code for their coordinates and use it like this. Only works if there's a possibility to make a
ImageButton
with text and image.The text was updated successfully, but these errors were encountered: