11-25-2020, 08:25 PM
(This post was last modified: 11-25-2020, 08:32 PM by Brian Beuken.)
This will be covered in some demos I am doing but its useful for older code too. Full2D Text display can be a bit tricky on C++ GPU projects but there's a nice library that lets us do quite a lot, to install the libs you do need to build it so here are the steps
you could make a script for this if you want. I covered how to use this in Lesson 10 of the MagiPi tuts.
Code:
sudo apt-get install libfreetype6 libfreetype6-dev -y
cd /home/pi
Code:
wget https://download.savannah.gnu.org/releases/freetype/freetype-2.6.3.tar.gz
Code:
tar -xvzf freetype-2.6.3.tar.gz
Code:
cd freetype-2.6.3
Code:
make
Code:
sudo make install
Brian Beuken
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's