Class EntityTextRenderer
Draws the text of every EntityTextComponent in the scene, as a screen-space overlay over the rendered 3D scene.
public class EntityTextRenderer : SceneRendererBase, IComponent, IReferencable, ICollectorHolder, ISceneRenderer, IRenderCollector, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
- Inheritance
-
EntityTextRenderer
- Implements
- Inherited Members
Remarks
EntityTextProcessor adds one to the scene's compositor when the scene has an EntityTextComponent, wherever it sits in the entity hierarchy.
Text is drawn with SpriteBatch and no depth testing, so it always appears on top of the scene rather than being occluded by geometry in front of it.
Fields
ProfilingKey
The block the profiler shows this renderer's GPU time under.
public static readonly ProfilingKey ProfilingKey
Field Value
Methods
Destroy()
protected override void Destroy()
DrawCore(RenderContext, RenderDrawContext)
protected override void DrawCore(RenderContext context, RenderDrawContext drawContext)
Parameters
contextRenderContextdrawContextRenderDrawContext
InitializeCore()
protected override void InitializeCore()