1
General / Text Output in OpenGL ?
« on: November 21, 2011, 05:57:16 pm »
thanks Laurent. for some reason I believed that you could only use a RenderWindow with SFML draw commands. I will try switching my display setup to use it.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Nothing changed in SFML 1.6, but SFML 2.0 will probably soon have a much better API for dealing with pixels. It already implements a new Image::UpdatePixels function that avoids copying the pixels to the Image cache; instead they go straight to the video memory.
So, currently the best solution is to use SFML 2.0, an external raw array of pixels, and Image::UpdatePixels whenever you want to sync the image with it.
There's currently no similar option in the audio module, to avoid the internal copy of sound samples when updating a sf::SoundBuffer.
Ok, fair enough
In the future I'll try to provide faster and more direct access to pixels. I think there is some room for improvement there.