Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
[SOLVED]Two views to a window
Print
Pages: [
1
]
Author
Topic: [SOLVED]Two views to a window (Read 1784 times)
0 Members and 1 Guest are viewing this topic.
shotoreaper
Newbie
Posts: 11
[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
»
Logged
Laurent
Administrator
Hero Member
Posts: 32498
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...
Logged
Laurent Gomila - SFML developer
shotoreaper
Newbie
Posts: 11
Re: [SOLVED]Two views to a window
«
Reply #2 on:
May 28, 2013, 03:55:17 pm »
Thanks!!
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
[SOLVED]Two views to a window