Class RenderContext
Rendering context.
public sealed class RenderContext : ComponentBase, IDisposable, IComponent, IReferencable, ICollectorHolder
- Inheritance
-
RenderContext
- Implements
- Inherited Members
- Extension Methods
Fields
RenderOutput
The current render output format (used during the collect phase).
public RenderOutputDescription RenderOutput
Field Value
ViewportState
The current render output format (used during the collect phase).
public ViewportState ViewportState
Field Value
Properties
Allocator
Gets the GraphicsResource allocator.
public GraphicsResourceAllocator Allocator { get; }
Property Value
- GraphicsResourceAllocator
The allocator.
Effects
Gets the content manager.
public EffectSystem Effects { get; }
Property Value
- EffectSystem
The content manager.
GraphicsDevice
Gets the graphics device.
public GraphicsDevice GraphicsDevice { get; }
Property Value
- GraphicsDevice
The graphics device.
RenderSystem
The current render system.
public RenderSystem RenderSystem { get; set; }
Property Value
RenderView
The current render view.
public RenderView RenderView { get; set; }
Property Value
Services
Gets the services registry.
public IServiceRegistry Services { get; }
Property Value
- IServiceRegistry
The services registry.
StreamingManager
The streaming manager.
public StreamingManager StreamingManager { get; set; }
Property Value
Time
Gets or sets the time.
public GameTime Time { get; set; }
Property Value
VisibilityGroup
The current visibility group from the SceneInstance and RenderSystem.
public VisibilityGroup VisibilityGroup { get; set; }
Property Value
Methods
Destroy()
Disposes of object resources.
protected override void Destroy()
Flush()
public void Flush()
GetShared(IServiceRegistry)
Gets a global shared context.
public static RenderContext GetShared(IServiceRegistry services)
Parameters
services
IServiceRegistryThe services.
Returns
- RenderContext
RenderContext.
GetThreadContext()
public RenderDrawContext GetThreadContext()
Returns
PushRenderViewAndRestore(RenderView)
Pushes a render view and restores it after using it.
public RenderContext.RenderViewRestore PushRenderViewAndRestore(RenderView renderView)
Parameters
renderView
RenderViewThe render view.
Returns
Reset()
public void Reset()
SaveRenderOutputAndRestore()
Saves a viewport and restores it after using it.
public RenderContext.RenderOutputRestore SaveRenderOutputAndRestore()
Returns
SaveViewportAndRestore()
Saves a viewport state and restores after using it.
public RenderContext.ViewportRestore SaveViewportAndRestore()
Returns
Events
RendererInitialized
Occurs when a renderer is initialized.
public event Action<IGraphicsRendererCore> RendererInitialized