4 ms·
In case someone from the Blender team is reading this could you share some pointers on how the ui toolkit for blender 2.80 is implemented? Any files to start re
by dman 7y ago
In case someone from the Blender team is reading this could you share some pointers on how the ui toolkit for blender 2.80 is implemented? Any files to start reading / any design docs? Blender is one of the nicer opengl based guis I have seen and am curious to learn more on how its implemented (fonts for instance).
- boterock 7y agoIf you are into opengl guis, you can check ImGui, it is a joy to work with it. although it doesn't have any fancy font stuff afaik. Also there is UE4 slate, which has a funny way of doing stuff.
- Jasper_ 7y agoLooks like a custom glyph atlas cache based on top of FreeType [0]. These days I would use HarfBuzz/stb_truetype [1] for a lightweight thing. Use FreeType if you need something even fancier. [0] https://git.blender.org/gitweb/gitweb.cgi/blender.git/blob/HEAD:/source/blender/blenfont/intern/blf_glyph.c https://git.blender.org/gitweb/gitweb.cgi/blender.git/blob/H... [1] like https://gist.github.com/rygorous/6f2779a451d2040371e3acb79e16eaff https://gist.github.com/rygorous/6f2779a451d2040371e3acb79e1...
- UncleEntity 7y agoSomewhere in the sources is the GHOST (General Handy Operating System Toolkit) folder which is where the UI stuff is implemented. intern/ghost if I were to guess without looking at the actual sourcetree...