VC++ 2012
I am pretty sure that that is not the problem.
I am pretty sure that that is not the problem.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
#include <TGUI/TGUI.hpp>
int main()
{
// Create the window
sf::RenderWindow window(sf::VideoMode(1024,576), "Window");
tgui::Gui gui(window);
gui.loadWidgetsFromFile("form.txt");
// Load the font (you should check the return value to make sure that it is loaded)
gui.setGlobalFont("fonts/DejaVuSans.ttf");
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
// Pass the event to all the widgets (if there would be widgets)
gui.handleEvent(event);
}
window.clear();
// Draw all created widgets
gui.draw();
window.display();
}
return EXIT_SUCCESS;
}