Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Freetype
#1
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

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
you could make a script for this if you want. I covered how to use this in Lesson 10 of the MagiPi tuts.
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 



Reply
#2
oh and check for latest verison, here I'm using 2.6.3 but theres actuallly 2.10.4 now. I have no idea what was updated but both work just fine
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 



Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)