Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Messages - overwave

Pages: [1]
1
Graphics / Re: Wrap of a GLScissors
« on: June 08, 2015, 07:53:16 pm »
      sf::View reduced(sf::FloatRect(posX, posY, wid, hei));
      reduced.setViewport(sf::FloatRect((float)posX / 800.f, (float)posY / 600.f, (float)wid / 800.f, (float)hei / 600.f));


<3

Solved

2
Graphics / Re: Wrap of a GLScissors
« on: June 08, 2015, 05:36:53 pm »
But when I initialize sf::View I don't set the Viewport? Also, due to my low english I got documentation not so clear :(

3
Graphics / Re: Wrap of a GLScissors
« on: June 08, 2015, 03:14:03 pm »
Maybe I don't understand something, but I don't know hot to do this:


window->draw(sprite);
window->setView(sf::View(sf::FloatRect(posX, posY, wid, hei)));
window->draw(text);
window->setView(sf::View(sf::FloatRect(0, 0, 800, 600)));

4
Graphics / Wrap of a GLScissors
« on: June 08, 2015, 12:09:25 pm »
In simple GL i had Scissors to change a rectangle for drawing. Which analog exists in SFML?

Scheme is attached.

Pages: [1]