INNER CODE UNIT · C#
EditorRenderer
HexaEngine/HexaEngine · Editor/EditorRenderer.cs:8
public class EditorRenderer : OverlayRendererBase
{
private EditorWindow window;
public EditorRenderer(EditorWindow window)
{
this.window = window;
}
public override int ZIndex { get; } = 0;
protected override void Draw(IGraphicsContext context, Viewport viewport, Texture2D target, DepthStencil depthStencil)
{
if (!window.EditorInitialized) return;
DrawEditor(context);
}
public static void DrawEditor(IGraphicsContext context)