ApEkV2
May 17th, 2011, 06:08 PM
Hello, I've recently been working on a ray tracer as a hobby and have stumbled upon a problem. I have a malloced buffer that contains RGBA pixels as floats and was wondering what the best way to get them on the screen.
I'm currently trying to use SDL with OpenGL's glDrawPixels() but that isn't working. Is there a way to take this buffer and turn it into a 2d OpenGL texture or an SDL_surface?
I'm currently trying to use SDL with OpenGL's glDrawPixels() but that isn't working. Is there a way to take this buffer and turn it into a 2d OpenGL texture or an SDL_surface?