1
Graphics / Drawing pixels
« on: October 06, 2015, 10:38:37 pm »
Hello.
I'm making a paint-like tool in SFML. I'd like to be able to draw the canvas as a whole, while being able to change the color of single pixels - and to do it somewhat quickly. The thing is, I can't figure out a way to do this efficiently - using an Image sounded great, until I learned that I'd have to load it to a texture every time I want to change anything. Since I'd be passing millions of vertices, I doubt a VertexArray would be great - unless there's something I'm missing.
So, is there any efficient way of doing it, or am I stuck with lower level libraries?
I'm making a paint-like tool in SFML. I'd like to be able to draw the canvas as a whole, while being able to change the color of single pixels - and to do it somewhat quickly. The thing is, I can't figure out a way to do this efficiently - using an Image sounded great, until I learned that I'd have to load it to a texture every time I want to change anything. Since I'd be passing millions of vertices, I doubt a VertexArray would be great - unless there's something I'm missing.
So, is there any efficient way of doing it, or am I stuck with lower level libraries?