An open API service indexing awesome lists of open source software.

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

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/).