Class RendererContext
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Shared context containing loaders and caches used by the renderer.
public class RendererContext : IDisposableInheritance
Implements
Constructors
RendererContext(GameFileLoader, ILogger)
Initializes a new renderer context.
public RendererContext(GameFileLoader fileLoader, ILogger logger)Parameters
fileLoader GameFileLoader
Game file loader for resource access.
logger ILogger
Logger for diagnostic output.
Properties
Device
Owns the GPU objects created for this renderer. Creation goes through the static methods on
rather than through this property.public GraphicsDevice Device { get; }Property Value
FieldOfView
Main camera field of view, in horizontal degrees at a 4:3 aspect ratio. See .
public float FieldOfView { get; set; }Property Value
FileLoader
Game file loader for loading resources from packages.
public GameFileLoader FileLoader { get; }Property Value
Logger
Logger for diagnostic messages.
public ILogger Logger { get; }Property Value
MaterialLoader
Material and texture loader and cache.
public MaterialLoader MaterialLoader { get; }Property Value
MaxTextureSize
Maximum texture mip size to load in .
public int MaxTextureSize { get; set; }Property Value
MeshBufferCache
GPU mesh buffer and vertex array object cache.
public GPUMeshBufferCache MeshBufferCache { get; }Property Value
ParallelSimulation
Whether scene nodes simulate across the thread pool, published by the renderer each frame.
public bool ParallelSimulation { get; set; }Property Value
ShaderLoader
Shader compiler and cache.
public ShaderLoader ShaderLoader { get; }Property Value
ViewmodelFieldOfView
First-person viewmodel field of view, in horizontal degrees at a 4:3 aspect ratio.
public float ViewmodelFieldOfView { get; set; }Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()Dispose(bool)
Releases resources owned by the context.
protected virtual void Dispose(bool disposing)Parameters
disposing bool
True to release managed resources.

