1
Graphics / glCullFace makes SFML blind
« on: June 23, 2011, 01:56:09 pm »
Hi,
I don't know for the rest of SFML (2.0) rendering, cause I use it's native functions only to draw text, but here we go:
That means it's safe to assume that at least for text quads SFML uses wrong winding order. I think it should be considered a bug, Laurent
I don't know for the rest of SFML (2.0) rendering, cause I use it's native functions only to draw text, but here we go:
Code: [Select]
glEnable (GL_CULL_FACE);
glCullFace(GL_BACK);
//glFrontFace(GL_CCW); This is an OpenGL's default
window->Draw(text); // doesn't render anything
glFrontFace(GL_CW);
window->Draw(text); // but this works fine
That means it's safe to assume that at least for text quads SFML uses wrong winding order. I think it should be considered a bug, Laurent