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

Author Topic: sfml.View.viewport ? (pysfml-cython)  (Read 5651 times)

0 Members and 1 Guest are viewing this topic.

gaulois94

  • Sr. Member
  • ****
  • Posts: 259
    • View Profile
sfml.View.viewport ? (pysfml-cython)
« on: May 02, 2013, 09:49:44 pm »
Hello,

Well I'm training and working with bastien's pysfml2.0 and I test what doing the sfml.View.viewport. When I do this :

window.view.viewport = sf.FloatRect(0,0,0.5,0.5)

It's the same thing than if I tried to zoom of 2 my view. But, if I correctly understood the documentation, It have to zoom of 0.5, right ? (here,, my drawables are tiny and their position (in the window) near to the center, instead of they are big and far of the center of my view).

Oh, and a last thing : why the center and the size of a view is a tuple and not a sf.Vector2f ?

Well, thank you :) .
« Last Edit: November 04, 2013, 10:16:52 am by Sonkun »