SFML community forums

Help => Graphics => Topic started by: StriderPulse599 on March 01, 2024, 11:29:59 am

Title: How sf::VertexArray works OpenGL-wise?
Post by: StriderPulse599 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.
Title: Re: How sf::VertexArray works OpenGL-wise?
Post by: eXpl0it3r 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 (https://github.com/SFML/SFML/blob/master/src/SFML/Graphics/RenderTarget.cpp#L346-L411). Hope that helps.