summaryrefslogtreecommitdiffhomepage
path: root/src/hud.c
AgeCommit message (Collapse)Author
2024-09-08Improve the HUD API slightlyMichael Smith
- Add text size measurement (for centring etc.). - Add a wchar_t equivalent since ushort would be wrong on Linux. Avoid actually using wchar.h because it's a big bloaty header, particularly on Windows.
2024-08-23Revise syntax macros and add a ton of branch hintsMichael Smith
My new programming style is branch hints. All non-confusing branches must be hinted when I can be bothered. It's faster, sometimes, maybe. Also, start trying to use more signed sizes in at least some of the places where it makes sense. Unsigned sizes are surprisingly error-prone!
2024-01-21Rethink mem_loadoffset, and consequently, kill itMichael Smith
Suggested by bill. Having something semantically pointer-sized that's only ever used for stuff that's always 32-bit doesn't really make sense. Note that I intentionally did not add a copyright line for myself in hud.c because, I mean, come on. I'll just say I waive any claim to that tiny trivial change.
2023-12-19Add VGUI HUD overlay drawing featureMatthew Wozniak
Currently only supports Orange Box and Left 4 Dead branches. There's quite a large amount of gamedata involved in making this work, and figuring it out for the likes of Portal 2 doesn't seem like a major priority at the moment.