Class GraphicsContext
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
One command stream recorded against a 's objects.
A device can own several contexts; each is current on at most one thread at a time, so
is per thread and names the context the calling thread is recording into.public sealed class GraphicsContextInheritance
Properties
Current
Gets the context the calling thread is recording into.
public static GraphicsContext Current { get; }Property Value
Exceptions
Thrown when no context is current on this thread, which means the caller is issuing graphics work without a context, or from a thread the context was never handed to.
RenderState
Gets the render state applied by the context the calling thread records into. State is per context, not per device.
public static RenderStateTracker RenderState { get; }Property Value
Methods
Begin()
Opens this context for recording on the calling thread, opening its surface with it. Close it with .
public void Begin()End()
Closes this context and its surface on the calling thread. Like the surface it drives, this is not nestable: the innermost call closes for good.
public void End()
