#vertex array or vertex buffer in SFML?

1 messages · Page 1 of 1 (latest)

sturdy grail
#

I'm a bit confused on which one I should use for my project(s). it should be noted that each vertex's position in the container is updated every single frame.

i use primarily vertex_arrays so i have pretty much no experience with vertex buffers

fervent briarBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

floral totem
#

I don't think you can really use VAO without some vertex buffer(VBO)

#

maybe you are not exactly talking about vertex array objects (VAO) like in opengl

#

ive taken a look and it looks like you would want to use the VertexBuffer sfml class

#

it looks like sf::VertexArray is stored on cpu memory, whereas sf::VertexBuffer is stored on gpu memory

#

if you are going to be updating the vertices every frame, you would want to use memory directly from the gpu and for sfml, you'd probably call the .update method on the instance of vertexbuffer

fervent briarBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.