https://github.com/syanenko/hellobricks
Shaders based text rendering
https://github.com/syanenko/hellobricks
cpp glsl glsl-shaders opengl rendering
Last synced: 2 months ago
JSON representation
Shaders based text rendering
- Host: GitHub
- URL: https://github.com/syanenko/hellobricks
- Owner: syanenko
- Created: 2021-01-27T21:06:57.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-06T23:57:32.000Z (over 5 years ago)
- Last Synced: 2025-03-13T02:41:49.159Z (over 1 year ago)
- Topics: cpp, glsl, glsl-shaders, opengl, rendering
- Language: C
- Homepage:
- Size: 2.84 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello Bricks
#### What
Text rendering with OpenGL
#### Who
Sergey Yanenko
#### Why
Homework for "Bricks" project
#### When
01/2021
#### How
This way: [Easy Scalable Text Rendering on the GPU](https://medium.com/@evanwallace/easy-scalable-text-rendering-on-the-gpu-c3f4d782c5ac) (but without quadratic smooth and anti-aliasing yet), with a help of [FreeType](https://www.freetype.org/index.html).
#### Running from pre-built binaries
1. Clone this repository
2. Run:
```
.\RUN_ME.bat
```
3. Usage:
```
HelloBricks [-h][-t [-f []]
-h: Show this help
-t: Text to render
-f: Font to use ('fonts/times.ttf' by default)
```
#### Compiling from sources
1. Open `HelloBricks.sln` from MS Visual Studio 2017 or later
2. Build solution
3. Run: `Ctrl+F5`
#### Control
| Keys | Actions |
|------|---------|
| +/- | Zooms in/out |
|Arrows|Pan|
|Enter| Set default views|
|Esc|Exit|
Contact me at [LinkedIn](https://www.linkedin.com/in/sergey-yanenko-57b21a96/).