sdl_stb_font:在纯SDL中使用STB_Truetype渲染文本

时间:2021-05-17 20:09:16
【文件属性】:
文件名称:sdl_stb_font:在纯SDL中使用STB_Truetype渲染文本
文件大小:15.2MB
文件格式:ZIP
更新时间:2021-05-17 20:09:16
sdl bgfx stb text-rendering C SDL STB字体渲染器 仅标头的库,用于在具有纯呈现文本。 这会在字形绘制时缓存字形,以实现快速的文本呈现。 它还提供了两种简单的方法来将字符串渲染为纹理,以实现更快的文本渲染。 新(2021)! 也可以使用bgfxFrontend.h在中bgfxFrontend.h ! 范例图片: 来自示例文本 接触: 利亚姆·特格格(Liam Twigger)-@SnapperTheTwig 特征: 单头库-无需构建系统。 只需包括并开始! 在纯SDL中运行-不需要OpenGL(尽管它确实适用于OpenGL) 简单的文本呈现fc.drawText(x, y, string) 渲染到纹理fc.renderTextToTexture(string, &widthOut, &heightOut) 格式化文本(如果有字体!)。 请参阅末尾的格式化部分 渲染到纹理对象-请参见示例 可以将鼠标位
【文件预览】:
sdl_stb_font-master
----sttFont.h(69KB)
----bgfxFrontendShaders.h(83KB)
----tools()
--------lzz.exe(1.29MB)
--------lzz(924KB)
--------lzz-lic.txt(34KB)
----fonts()
--------NotoSansArabic-Regular.ttf(183KB)
--------NotoSans-BoldItalic.ttf(460KB)
--------NotoSans-Italic.ttf(459KB)
--------NotoSansArmenian-Regular.ttf(29KB)
--------NotoSans-Bold.ttf(444KB)
--------NotoSansHebrew-Regular.ttf(27KB)
--------LICENSE_OFL.txt(4KB)
--------NotoSansCJKjp-Regular.otf(15.67MB)
--------NotoSans-Regular.ttf(445KB)
--------NotoSansGeorgian-Regular.ttf(41KB)
----sdlFrontend.h(12KB)
----bgfxh_embedded_shader.h(4KB)
----src()
--------sttFont.lzz(27KB)
--------sttFontFormattedText.lzz(23KB)
--------temp()
--------bgfxFrontend.lzz(25KB)
--------example.lzz(12KB)
--------sdlFrontend.lzz(8KB)
--------makefile(2KB)
--------bgfx_shaders()
----example2.png(54KB)
----bgfxFrontend.h(32KB)
----example.png(96KB)
----example.cpp(12KB)
----stb_truetype.h(191KB)
----README.md(13KB)
----bgfxExample.cpp(7KB)
----build.sh(151B)
----sdlStbFont.h(81KB)

网友评论