Hi
im new to opengl and im trying to make a mandelbrot set visualizer.
The only way i can think of to do this is to generate some vertex data that forms a quad that covers the entire screen and then send that to the shaders every time i need to draw (the shaders then calculate the colors).
But it just seems very wasteful (since the quad never changes or moves) to call glDrawArrays and send down the same vertex buffer every single frame.
Is there a way to tell opengl to just invoke the shaders using the last input, without sending any vertex buffers to the gpu?
that way i just have to send down the vertex buffer once and then i can just keep invoking the shaders
ohh sorry i think i misunderstood how opengl works
i was thinking that the vertex buffer objects existed on the cpu and when i called a draw function it would send a copy of that data to the gpu
but i guess what actually happens is that when i first create the vbo and put data in it, it sends the data to the gpu and the draw call just tells it which buffer to use on the gpu.
This make much more sense, idk what i was thinking before. Thanks.