GlyphGL:开源 C/C++ 仅头文件轻量级 OpenGL 文本渲染器
2 分•作者: DareksCoffee•8 个月前
大家好!
我很高兴与大家分享 GlyphGL,这是一个我从头开始编写的全新极简项目,它不需要任何依赖项。
它是一个跨平台(Windows、Linux、MacOS)的头文件 C/C++ 库,专为简单性和绝对控制而设计(仍在开发中)。
* **无 FreeType:** 它包含自己的 ttf 解析器、光栅化器和渲染器。
* **无 OpenGL 加载器:** GlyphGL 包含自己的内置加载器,可以处理许多平台上的所有必要的 OpenGL 函数和指针,尽管可以使用 GLYPH\_NO\_GL\_LOADER 禁用它。
* **兼容性:** GlyphGL 使用 C99 语法编写,这意味着它可以轻松移植到其他平台。
* **性能:** 尽管仍在开发中,并且缺乏重度优化(如 SDF 渲染和其他高级技术),但由于其高效的批处理渲染系统,GlyphGL 仍然非常快。
我欢迎大家提出批评,以帮助这个项目改进和发展。如果您发现任何问题、错误或需要澄清的地方,请在帖子中评论或在仓库中提交问题!
仓库:[https://github.com/DareksCoffee/GlyphGL](https://github.com/DareksCoffee/GlyphGL)
查看原文
Hi y'all
I'm very happy to share GlyphGL, a new minimal project I wrote from scratch that requires zero dependencies
It's a cross-platform (Windows, Linux, Macos) header only C/C++ library designed for simplicity and absolute control (still under development)
No FreeType: It contains it's own ttf parser, rasterizer and renderer
No OpenGL Loader: GlyphGL includes it's own built in loader that handles all necessary OpenGL functions and pointers across many platforms, although it can be disabled using GLYPH_NO_GL_LOADER
Compatibility: GlyphGL is written with C99 syntax, meaning it can be ported easily to other platforms
Performance: Although still under development and lacking heavy optimizations (like SDF rendering and other advanced techniques), GlyphGL remains notably fast thanks to its efficient batch rendering system<p>i'm open to criticism to help this project improve and grow, so if you find any issues, bug or need some clarifications, please comment in the thread or pull an issue in the repo!<p>repo: https://github.com/DareksCoffee/GlyphGL