RenderTexture.resetGLStates

Reset the internal OpenGL states so that the target is ready for drawing.

This function can be used when you mix DSFML drawing and direct OpenGL rendering, if you choose not to use pushGLStates/popGLStates. It makes sure that all OpenGL states needed by DSFML are set, so that subsequent draw() calls will work as expected.

class RenderTexture
void
resetGLStates
(
)

Meta