SFML community forums

Help => Graphics => Topic started by: zeruel on March 02, 2012, 06:15:56 pm

Title: VertexArray Question
Post by: zeruel on March 02, 2012, 06:15:56 pm
I've been going through the new graphics API and I'm confused about something.

I'm trying to figure out why we can't modify the vertices in a VertexArray. I see we can read them just fine but what if we want to move the texture coordinates or transform them?

Am I just missing something or is this really not possible?

EDIT: Nevermind, I just found the answer in another thread. Sorry about that.  :oops:
Title: VertexArray Question
Post by: zeruel on March 02, 2012, 06:44:53 pm
I do have a question after all.

I'm new to graphics and OpenGL so forgive my ignorance. Say I have a VertexArray with 100 quads in it. Is it guaranteed that it will be drawn in the order 0 to 99? Is there any occasion that would make it drawn backwards or in a random order?
Title: VertexArray Question
Post by: Laurent on March 02, 2012, 06:49:05 pm
Quote
Is it guaranteed that it will be drawn in the order 0 to 99?

Yes.
Title: VertexArray Question
Post by: zeruel on March 02, 2012, 06:59:21 pm
Thank you, Laurent.