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

Author Topic: [SOLVED]Two views to a window  (Read 1488 times)

0 Members and 1 Guest are viewing this topic.

shotoreaper

  • Newbie
  • *
  • Posts: 11
    • View Profile
[SOLVED]Two views to a window
« on: May 27, 2013, 06:05:45 pm »
Hi!
I am doing the SFML 2.0 tutorial "Controlling the 2D camera with views". This tutorial say that its posible create two views ( ie: gameview and minimapview) , but donĀ“t say how can I set it to a window. In the example the author only set one view.

http://www.sfml-dev.org/tutorials/2.0/graphics-view.php
« Last Edit: May 28, 2013, 03:55:01 pm by shotoreaper »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Two views to a window
« Reply #1 on: May 27, 2013, 07:19:51 pm »
window.setView(view1);
// draw scene...

window.setView(view2);
// draw scene...
Laurent Gomila - SFML developer

shotoreaper

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [SOLVED]Two views to a window
« Reply #2 on: May 28, 2013, 03:55:17 pm »
Thanks!!

 

anything