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

Author Topic: VertexArray Question  (Read 1675 times)

0 Members and 2 Guests are viewing this topic.

zeruel

  • Newbie
  • *
  • Posts: 4
    • View Profile
VertexArray Question
« 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:

zeruel

  • Newbie
  • *
  • Posts: 4
    • View Profile
VertexArray Question
« Reply #1 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
VertexArray Question
« Reply #2 on: March 02, 2012, 06:49:05 pm »
Quote
Is it guaranteed that it will be drawn in the order 0 to 99?

Yes.
Laurent Gomila - SFML developer

zeruel

  • Newbie
  • *
  • Posts: 4
    • View Profile
VertexArray Question
« Reply #3 on: March 02, 2012, 06:59:21 pm »
Thank you, Laurent.

 

anything