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

Author Topic: How Views Work  (Read 3436 times)

0 Members and 1 Guest are viewing this topic.

Mikea

  • Newbie
  • *
  • Posts: 28
    • View Profile
How Views Work
« on: August 29, 2009, 12:01:26 pm »
Hello. I need to know how views works.

I've read the tutorials. But I don't understand the way they are created with the Halfpoint and Center. Could someone please explain how it works?

Thanks.
Check out my sfml games here

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
How Views Work
« Reply #1 on: August 29, 2009, 03:01:38 pm »
The view is a rectangle, which is defined by its center and half of its size.

What don't you understand?
Laurent Gomila - SFML developer

didito

  • Newbie
  • *
  • Posts: 27
    • View Profile
    • http://didito.gpigs.com
How Views Work
« Reply #2 on: October 14, 2009, 05:03:58 pm »
to be honest i was also confused with the information about view i found.
or more because it did not work as expected.

can i render to different parts of the window/canvas with them?
does it use opengl scissor test internatlly?

i will try to make a simple demo again and then post my problems

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
How Views Work
« Reply #3 on: October 14, 2009, 05:28:43 pm »
Quote
can i render to different parts of the window/canvas with them?

Not in SFML 1.x, but it's already implemented in the experimental SFML 2 branch.

Quote
does it use opengl scissor test internatlly?

No, this feature uses OpenGL viewports.

Quote
i will try to make a simple demo again and then post my problems

Ok :)
Laurent Gomila - SFML developer

didito

  • Newbie
  • *
  • Posts: 27
    • View Profile
    • http://didito.gpigs.com
How Views Work
« Reply #4 on: October 14, 2009, 05:33:10 pm »
ok, good to know, since i might need this feature.
maybe it is time to switch to the SFML2 branch...

could you please tell us what is the status on that?
what is working / stable, what not (platforms, features, ...)?

TIA
didi

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
How Views Work
« Reply #5 on: October 14, 2009, 05:40:41 pm »
You can get the list of features and bug fixes that have been implemented and still have to be done, in the task list (use the advanced search, select "Due in version 2.0"):
http://www.sfml-dev.org/todo/

I try to commit only things that are stable enough to be used, so you can consider it won't crash 10 times a day ;)

The only major issue is that we still need someone to maintain the Mac OS X port, nothing has been done so far (the current maintainer will stop after SFML 1.x).
Laurent Gomila - SFML developer