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

Author Topic: [SOLVED] View manipulation - always entire screen?  (Read 1595 times)

0 Members and 1 Guest are viewing this topic.

Brendon

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
    • http://blendogames.com
[SOLVED] View manipulation - always entire screen?
« on: March 28, 2010, 07:42:34 pm »
I'm using View to zoom in/out of my gameplay screens.  If I understand it correctly, the View grabs the entire RenderWindow and manipulates it.

My question is, what's the best way to not manipulate the entire screen?  For example, if I press ESC to open an options menu, ideally the options menu shouldn't also be zoomed-in.

Is there a way to draw "unzoomed" graphics elements over a View-manipulated gameplay screen?

Spidyy

  • Sr. Member
  • ****
  • Posts: 493
    • View Profile
[SOLVED] View manipulation - always entire screen?
« Reply #1 on: March 28, 2010, 07:58:56 pm »
Juste call the default view (App.SetView(App.GetDefaultView())) or another view than the one you are using to zoom before drawing your menu.

Brendon

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
    • http://blendogames.com
[SOLVED] View manipulation - always entire screen?
« Reply #2 on: March 28, 2010, 08:10:43 pm »
Thanks Spidyy, that did the trick.  

Before drawing my gameplay screen, I tell my RenderWindow to use my manipulated View. After the gameplay screen is done drawing, I tell my RenderWindow to use the App.DefaultView.  Works great.

 

anything