SFML.Net
RenderTexturePushGLStates Method |
Save the current OpenGL render states and matrices.
This function can be used when you mix SFML drawing
and direct OpenGL rendering. Combined with PopGLStates,
it ensures that:
\li SFML's internal states are not messed up by your OpenGL code
\li your OpenGL states are not modified by a call to a SFML function
More specifically, it must be used around code that
calls Draw functions. Example:
// OpenGL code here...
window.PushGLStates();
window.Draw(...);
window.Draw(...);
window.PopGLStates();
// OpenGL code here...
Note that this function is quite expensive: it saves all the
possible OpenGL states and matrices, even the ones you
don't care about. Therefore it should be used wisely.
It is provided for convenience, but the best results will
be achieved if you handle OpenGL states yourself (because
you know which states have really changed, and need to be
saved and restored). Take a look at the ResetGLStates
function if you do so.
Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)

public void PushGLStates()
Public Sub PushGLStates
public: virtual void PushGLStates() sealed
abstract PushGLStates : unit -> unit override PushGLStates : unit -> unit
Implements
RenderTargetPushGLStates