GlyphGL:开源的 C/C++ 头文件轻量级 OpenGL 文本渲染器

2作者: DareksCoffee大约 17 小时前原帖
大家好, 我很高兴与大家分享 GlyphGL,这是一个我从零开始编写的新项目,完全不依赖任何外部库。它是一个跨平台(Windows、Linux、macOS)的仅头文件 C/C++ 库,旨在简化使用并提供绝对的控制(仍在开发中)。 没有 FreeType:它包含自己的 TTF 解析器、光栅化器和渲染器。 没有 OpenGL 加载器:GlyphGL 内置了自己的加载器,处理跨多个平台所需的所有 OpenGL 函数和指针,尽管可以通过 GLYPH_NO_GL_LOADER 选项禁用。 兼容性:GlyphGL 使用 C99 语法编写,意味着它可以轻松移植到其他平台。 性能:尽管仍在开发中,且缺乏一些重度优化(如 SDF 渲染和其他高级技术),但由于其高效的批量渲染系统,GlyphGL 仍然表现出色。 我欢迎批评意见,以帮助这个项目改进和成长,因此如果您发现任何问题、错误或需要一些澄清,请在讨论中评论或在仓库中提交问题! 仓库链接:https://github.com/DareksCoffee/GlyphGL
查看原文
Hi y&#x27;all I&#x27;m very happy to share GlyphGL, a new minimal project I wrote from scratch that requires zero dependencies It&#x27;s a cross-platform (Windows, Linux, Macos) header only C&#x2F;C++ library designed for simplicity and absolute control (still under development) No FreeType: It contains it&#x27;s own ttf parser, rasterizer and renderer No OpenGL Loader: GlyphGL includes it&#x27;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&#x27;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:&#x2F;&#x2F;github.com&#x2F;DareksCoffee&#x2F;GlyphGL