#include <SFML/window.hpp>
#include <SFML/system.hpp>
#include <SFML/audio.hpp>
#include <SFML/graphics.hpp>
//#include <SFML/Video.hpp>
#include <conio.h>
#include <TGUI/TGUI.hpp>
#include <iostream>
int main()
{
// Create the window
sf::RenderWindow window(sf::VideoMode(800, 600), "Window");
tgui::Gui gui(window);
// Load the font (you should check the return value to make sure that it is loaded)
gui.setGlobalFont("C:/Users/corleone/Downloads/Compressed/TGUI-0.6-alpha2-Visual-C++10-2010-32-bits/TGUI-0.6-alpha2/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;
}
zereo i am using this code ... and compiling it in both "release and debug solution configuration" .. it is giving an error ..i.e. "projecT.exe" is stop working .. but window is opening properly, but it is still giving that error .. i took this code from the link u gave me
http://tgui.eu/tutorials/v06/intro1/ !