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

Author Topic: How to set client area of RenderWindow to current window size?  (Read 3043 times)

0 Members and 1 Guest are viewing this topic.

mr.d

  • Newbie
  • *
  • Posts: 5
    • View Profile
Hi!

I am need a RenderWindow with same coordinates resolution as size of the window in pixels. I.e., after resize of window, RenderWindow maximum coordinates should be equal to window size (not to initial VideoMode)

How I can to achieve this?
« Last Edit: July 04, 2013, 05:51:48 am by mr.d »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: How to set client area of RenderWindow to current window size?
« Reply #1 on: July 04, 2013, 08:10:40 am »
Please see the end of the tutorial about views.
Laurent Gomila - SFML developer

mr.d

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: How to set client area of RenderWindow to current window size?
« Reply #2 on: July 05, 2013, 03:31:42 am »
Thanks, it works!

 

anything