SFML community forums

Help => Graphics => Topic started by: Mikea on August 29, 2009, 12:01:26 pm

Title: How Views Work
Post by: Mikea 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.
Title: How Views Work
Post by: Laurent 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?
Title: How Views Work
Post by: didito 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
Title: How Views Work
Post by: Laurent 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 :)
Title: How Views Work
Post by: didito 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
Title: How Views Work
Post by: Laurent 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).