I know that I have to copy DLLs, I said that to indicate that the program uses corrects DLLs. And yes I run it from command prompt in both cases. I'll take a look at the Trello page, thanks
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>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(800, 600), "TGUI window");
tgui::Gui gui(window);
tgui::Picture::Ptr pic = tgui::Picture::create("Black.png");
pic->setPosition(bindWidth(pic), 0.f);
gui.add(pic);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
gui.handleEvent(event);
}
window.clear(sf::Color::White);
gui.draw();
window.display();
}
return 0;
}
110 glCheck(glDeleteTextures(1, &texture));
FloatRect handleResize(Event::SizeEvent size)
{
unsigned int iw = size.width;
unsigned int ih = size.height;
float fh(ih), fw(iw);//If size is in a 16:9 ratio, it won't change.
if(iw/16 < ih/9)//Taller than a 16:9 ratio
fh = iw * (9.0/16.0);
else if(iw/16 > ih/9)//Larger than a 16:9 ratio
fw = ih * (16.0/9.0);
float scalex = fw/iw;
float scaley = fh/ih;
return FloatRect((1-scalex)/2.0f, (1-scaley)/2.0f, scalex, scaley);
}
Transform transform;
transform.scale(Vector2f(scalingFactor, scalingFactor));
m_gui.draw(true, transform);