Lightweight GUI implementation using Directx12. Built with llvm using My DXTK12 Minimised.
After I put it through my llvm passes and custom CRT replacer lib it compiles at a 150kb dll.
Most of the code is reused from my GUI Framework repo.
- Primitives
- Text
- Outlined Text
- Outline Circle
- Filled Circle
- Outline Rectangle
- Filled Rectangle
- Spritebatch
- Sprite font
- Font Loading From Memory
- GUI
- Form
- Toggle
- Label
- Slider
- Button
- Groupbox
- Tab
To generate spritefonts use the MakeSpriteFont.exe. Then use this command:
makeSpriteFont.exe "Verdana" "CourierNew.spritefont" /FontSize:12 /CharacterRegion:"32-64" /FastPack
Throw it in HXD, Export it as a C file and replace the old one. You can change the options on it to make the font clearer. I use a blurrier font for size reasons.