Lol I didnt know I can draw with DirectX in SFML
so sure I use GL. I didnt wanted to tell you, what I dont use I just wanted to verify why I'm posting here
So I initialize with this:
glClearColor( 0, 0, 0, 1 );
glEnable( GL_ALPHA_TEST );
glAlphaFunc( GL_GREATER , 0.1 );
glEnable( GL_BLEND );
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
And draw like that
glBindTexture( GL_TEXTURE_2D, _idtiles );
glEnableClientState( GL_VERTEX_ARRAY );
glVertexPointer( 2, GL_DOUBLE, 0, &_wayvertex[ 0 ] );
glEnableClientState( GL_TEXTURE_COORD_ARRAY );
glTexCoordPointer( 2, GL_DOUBLE, 0, &_waytexvertex[ 0 ] );
glDrawArrays( GL_TRIANGLES, 0, _wayvertex_size );
glDisableClientState( GL_TEXTURE_COORD_ARRAY );
glDisableClientState( GL_VERTEX_ARRAY );
I also buffered the coins you can see, but they are drawn the same way.