So I made a little rewriting of sfml's RenderTarget and Vertex to make it suitable for "2d" rendering with depth rendering. The problem is that sprite's transparency only works in one way and that is when vertices are rendered for fartherst to nearest. What OGL functions are missing for it to work properly.
I attach a zip file with with code for minimal working example and makefile (for Linux).