1
Graphics / Capture pixels while drawing shapes
« on: June 17, 2013, 06:13:41 pm »
Hi,
I'm searching a way to introduce some code between the computation of the pixels that must be colored when drawing a figure and the coloration itself. The target goal is to be able to cancel some pixel coloration based on a distance map to implement a basic 3D rendering engine.
Does anyone know where i should write this code ? I searched for some class i could extend and overload a "drawpixel" method but i did not find any ... (i'm new with SFML).
Thx for your attention
I'm searching a way to introduce some code between the computation of the pixels that must be colored when drawing a figure and the coloration itself. The target goal is to be able to cancel some pixel coloration based on a distance map to implement a basic 3D rendering engine.
Does anyone know where i should write this code ? I searched for some class i could extend and overload a "drawpixel" method but i did not find any ... (i'm new with SFML).
Thx for your attention