Text rendering with OpenGL
Sergey Yanenko
Homework for "Bricks" project
01/2021
This way: Easy Scalable Text Rendering on the GPU (but without quadratic smooth and anti-aliasing yet), with a help of FreeType.
-
Clone this repository
-
Run:
.\RUN_ME.bat
- Usage:
HelloBricks [-h][-t <text>[-f [<font>]]
-h: Show this help
-t: Text to render
-f: Font to use ('fonts/times.ttf' by default)
- Open
HelloBricks.sln
from MS Visual Studio 2017 or later - Build solution
- Run:
Ctrl+F5
Keys | Actions |
---|---|
+/- | Zooms in/out |
Arrows | Pan |
Enter | Set default views |
Esc | Exit |
Contact me at LinkedIn.