1
0
forked from josh/JGL
This branch is 228 commits behind josh/JGL:master
Ori Sky Farrell d4e9d1c906 FontCache: Use map for efficient glyph lookup
This patch updates CachedFont to now use an std::map for cached glyphs,
instead of an std::vector. std::map allows O(log n) lookup, whereas
std::vector only allows O(n) lookup.

Note: std::unordered_map technically has better lookup complexity here,
with amortized O(1) lookup. However, hashmaps have a higher inherent
overhead than red-black trees so this would only be viable when going
above around 100 entries, which should never happen here for ASCII
glyphs.
2024-07-15 10:54:49 +01:00
2024-07-05 05:31:25 -04:00
2024-01-19 14:23:02 -05:00
2024-01-18 23:28:11 -05:00
2024-07-12 13:14:24 -04:00
2024-07-10 15:17:37 -04:00

Josh Graphics Library

Yet Another C++ Rendering Toolkit

Static Badge

Goals

  • Provide single-function-calls to render various graphics primitives in 2D and 3D.
  • Integrated directly with our other toolkits (ReWindow, J3ML)
  • Quick Rendering of Debug Text, Geometric Widgets, Textures, and so forth.

Non-Goals

  • Full Rendering Engine
  • OpenGL/Vulkan Wrapper
  • Asset Loading & Management

Features

  • Modern C++ (20)
  • Little-to-no overhead
  • No hand-holding
  • No-frills, straight up just renders shapes and text.
  • Integrates right into an existing OpenGL rendering system.

Usage

Install instructions and code samples coming soon ™️ !

Documentation

Documentation is (sic: will be) automatically generated from latest commit and is hosted at https://doc.redacted.cc/jgl .

Contributing

Contributions to JGL are welcome! If you find a bug, have a feature request, or would like to contribute code, please submit an issue or pull request to our repository!

License

JGL is licensed under the Public Domain. See the LICENSE file for details.

Acknowledgements

JGL is developed and maintained by Josh O'Leary @ Co from Redacted Software and contributors. Special thanks to Redacted.

Description
No description provided
Readme 620 KiB
Languages
C++ 93.8%
CMake 5.9%
Shell 0.3%