Example code did not compile with SFML 2.3
parent
e058a1c6fc
commit
2c4daaf19d
|
@ -48,9 +48,6 @@ SET( MAJOR_VERSION 0 )
|
||||||
SET( MINOR_VERSION 8 )
|
SET( MINOR_VERSION 8 )
|
||||||
SET( PATCH_VERSION 0 )
|
SET( PATCH_VERSION 0 )
|
||||||
|
|
||||||
# Disable deprecated warnings from SFML
|
|
||||||
add_definitions(-DSFML_NO_DEPRECATED_WARNINGS)
|
|
||||||
|
|
||||||
# Include the configuration file
|
# Include the configuration file
|
||||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Config.cmake)
|
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Config.cmake)
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
#define SFML_NO_DEPRECATED_WARNINGS
|
||||||
#include <TGUI/TGUI.hpp>
|
#include <TGUI/TGUI.hpp>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
@ -238,7 +239,7 @@ int main()
|
||||||
|
|
||||||
sf::Text text{"SFML Canvas", *gui.getFont(), 24};
|
sf::Text text{"SFML Canvas", *gui.getFont(), 24};
|
||||||
text.setPosition(25, 100);
|
text.setPosition(25, 100);
|
||||||
text.setFillColor({200, 200, 200});
|
text.setColor({200, 200, 200});
|
||||||
|
|
||||||
auto canvas = tgui::Canvas::create({200, 140});
|
auto canvas = tgui::Canvas::create({200, 140});
|
||||||
canvas->setPosition(420, 430);
|
canvas->setPosition(420, 430);
|
||||||
|
|
Loading…
Reference in New Issue