Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Messages - luke1985

Pages: [1]
1
General / Re: Fastest way to update screen from pixels.
« on: June 21, 2015, 02:44:57 pm »
Well, what I want to achieve is a little more complicated. I want to make an isometric engine that sorts pixels by the depth they appear on scene and alpha composites the result, so for each screen pixel coordinate in the screen i need to check if it belongs to a sprite and if it does, add it to an array of pixels at that position, then sort the pixels in this array based on it's depth, calculated elsewhere.

I've searched for alternative methods, that would use GLSL. But due to it's big limitations (like lack of ability to store sampler objects in an array) it seems impossible.

2
General / Fastest way to update screen from pixels.
« on: June 21, 2015, 01:38:22 pm »
There is a specific situation:
I've got array of pixels sf::Uint8* that I want to alter every frame and draw to the whole screen.

What is the fastest way to do it?

Pages: [1]