Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevinmkchin/vertext
Single-header C library for generating vertices for rendering text
https://github.com/kevinmkchin/vertext
Last synced: 6 days ago
JSON representation
Single-header C library for generating vertices for rendering text
- Host: GitHub
- URL: https://github.com/kevinmkchin/vertext
- Owner: kevinmkchin
- Created: 2021-03-13T04:55:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-11T20:07:18.000Z (6 months ago)
- Last Synced: 2024-05-11T21:22:40.854Z (6 months ago)
- Language: C
- Homepage:
- Size: 1.29 MB
- Stars: 25
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-game-engine-dev - Vertext - Generates vertices for rendering text, requires stb_truetype. (Libraries / C)
README
# vertext
Single header C library for assembling textured quads for rendering text. This library does not perform rendering directly and instead provides a vertex buffer of vertices (in either Screen Space or Clip Space) and texture coordinates. This allows the library to work seamlessly with both OpenGL and DirectX. Very lightweight: ~700 lines of code.PURPOSE: Text rendering is a non-trivial task, and this library strives to make it easy and frictionless.
This library REQUIRES [Sean Barrett's stb_truetype.h](https://github.com/nothings/stb/blob/master/stb_truetype.h) library (which is also a single header).
![](https://github.com/kevinmkchin/vertext/blob/main/misc/text-buffer-assembly.gif?raw=true)
![](https://github.com/kevinmkchin/vertext/blob/main/misc/console.gif?raw=true)