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

Author Topic: How sf::VertexArray works OpenGL-wise?  (Read 1360 times)

0 Members and 1 Guest are viewing this topic.

StriderPulse599

  • Newbie
  • *
  • Posts: 16
    • View Profile
How sf::VertexArray works OpenGL-wise?
« on: March 01, 2024, 11:29:59 am »
I tried digging through source code but can't pinpoint what does what. I'm almost done with learning OpenGL, but I want to learn how SFML handled sf::VertexArray since I've been using it a lot.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: How sf::VertexArray works OpenGL-wise?
« Reply #1 on: March 01, 2024, 11:53:48 am »
VertexArray is basically just a container with some extra information, the actual magic with OpenGL happens in the draw method of the RenderTarget. Hope that helps.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/