I am tring to build a GUI system of my own.
But weird thing happened when I try to render a RenderTexture on RenderWindow.
What I did was create a sprite from that RenderTexture:
Sprite surface;
surface.setTexture(_finalSurface.getTexture());
surface.setPosition(_screenBounds.left, _screenBounds.top);
render_target.draw(surface);
and in main function:
Window* wnd = Window::Factory.newInstance2(gui);
wnd->position.set(Point(50,50));
wnd->size.set(Size(300,300));
but what I got is like this:
Instead of left-top corner, the form appeared in the left-bottom corner....
Isn't Y in SFML's coordinate system should be UP to DOWN???
[attachment deleted by admin]