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

Author Topic: Bit confused - large 2D world, smaller window w/o zooming  (Read 1313 times)

0 Members and 1 Guest are viewing this topic.

asdf

  • Newbie
  • *
  • Posts: 2
    • View Profile
Bit confused - large 2D world, smaller window w/o zooming
« on: September 18, 2011, 08:00:58 pm »
I want to have a 2D world that is, for example, 10000x10000 pixels, and then have a, for example, 800x600 window to display part of it, I've read the documentation about RenderWindows and Views and it seems to be on the lines of what I'm trying to do, but I can't quite figure out how to do it, any help?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Bit confused - large 2D world, smaller window w/o zooming
« Reply #1 on: September 18, 2011, 08:12:16 pm »
Well, there's nothing much to do in fact. Objects (sprites, texts, shapes) are in the 2D world, and the window displays a part of it through the view. This is how SFML works, and this is what you're looking for.

So what exactly is your problem?
Laurent Gomila - SFML developer

asdf

  • Newbie
  • *
  • Posts: 2
    • View Profile
Bit confused - large 2D world, smaller window w/o zooming
« Reply #2 on: September 18, 2011, 08:19:17 pm »
Ohh right, I was under the impression you were limited to the area you defined when you made the window, and you couldn't move or do anything outside it. I understand now, thanks.