mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Allow render targets to not clear (#3457)
This commit is contained in:
@@ -114,7 +114,7 @@ namespace Robust.Client.Graphics.Clyde
|
||||
return clydeTexture;
|
||||
}
|
||||
|
||||
public void RenderInRenderTarget(IRenderTarget target, Action a, Color clearColor=default)
|
||||
public void RenderInRenderTarget(IRenderTarget target, Action a, Color? clearColor)
|
||||
{
|
||||
_clyde.RenderInRenderTarget((RenderTargetBase) target, a, clearColor);
|
||||
}
|
||||
@@ -274,7 +274,7 @@ namespace Robust.Client.Graphics.Clyde
|
||||
_renderHandle.DrawLine(@from, to, color * Modulate);
|
||||
}
|
||||
|
||||
public override void RenderInRenderTarget(IRenderTarget target, Action a, Color clearColor = default)
|
||||
public override void RenderInRenderTarget(IRenderTarget target, Action a, Color? clearColor)
|
||||
{
|
||||
_renderHandle.RenderInRenderTarget(target, a, clearColor);
|
||||
}
|
||||
@@ -368,7 +368,7 @@ namespace Robust.Client.Graphics.Clyde
|
||||
_renderHandle.DrawLine(@from, to, color * Modulate);
|
||||
}
|
||||
|
||||
public override void RenderInRenderTarget(IRenderTarget target, Action a, Color clearColor = default)
|
||||
public override void RenderInRenderTarget(IRenderTarget target, Action a, Color? clearColor)
|
||||
{
|
||||
_renderHandle.RenderInRenderTarget(target, a, clearColor);
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@ namespace Robust.Client.Graphics
|
||||
|
||||
public abstract void DrawLine(Vector2 from, Vector2 to, Color color);
|
||||
|
||||
public abstract void RenderInRenderTarget(IRenderTarget target, Action a, Color clearColor=default);
|
||||
public abstract void RenderInRenderTarget(IRenderTarget target, Action a, Color? clearColor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Robust.Client.Graphics
|
||||
DrawingHandleScreen DrawingHandleScreen { get; }
|
||||
DrawingHandleWorld DrawingHandleWorld { get; }
|
||||
|
||||
void RenderInRenderTarget(IRenderTarget target, Action a, Color clearColor=default);
|
||||
void RenderInRenderTarget(IRenderTarget target, Action a, Color? clearColor);
|
||||
|
||||
void SetScissor(UIBox2i? scissorBox);
|
||||
void DrawEntity(EntityUid entity, Vector2 position, Vector2 scale, Direction? overrideDirection);
|
||||
|
||||
Reference in New Issue
Block a user