Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
SFML Blueprints

You're reading from   SFML Blueprints Sharpen your game development skills and improve your C++ and SFML knowledge with five exciting projects

Arrow left icon
Product type Paperback
Published in May 2015
Publisher Packt
ISBN-13 9781784398477
Length 298 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Maxime Barbier Maxime Barbier
Author Profile Icon Maxime Barbier
Maxime Barbier
Arrow right icon
View More author details
Toc

Using SFGUI


SFGUI is an open source library that implements a complete GUI system based on the top of SFML. Its goal is to provide a rich set of widgets and to be easily customizable and extensible. It also uses modern C++, so it's easy to use in any SFML project without too much effort.

The following screenshot shows the SFGUI in action with the test example provided with the source:

Installing SFGUI

The first step is to download the source code. You will find it on the official website of the library: http://sfgui.sfml-dev.de/. The current version is 0.2.3 (Feb 20, 2014). You will need to build SFGUI by yourself, but as usual, it comes with the cmake file to help with the build. That is perfect, because we already know how to use it.

Sometimes, you could have a problem like the one shown in the following screenshot during the build step:

In this case, you have to set the CMAKE_MODULE_PATH variable to /path/to/SFML/cmake/Modules using the add entry parameter. This should fix the problem.

Note...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images