Format code

This commit is contained in:
Wojtek Figat
2021-03-01 11:55:31 +01:00
parent 113fe30d5a
commit 489e8ddc42
2 changed files with 13 additions and 12 deletions

View File

@@ -209,7 +209,6 @@ namespace
Matrix3x3 TransformCached;
Array<ClipMask, InlinedAllocation<64>> ClipLayersStack;
Array<Color, InlinedAllocation<64>> TintLayersStack;
// Shader
@@ -635,8 +634,10 @@ void Render2D::Begin(GPUContext* context, GPUTextureView* output, GPUTextureView
ClipLayersStack.Clear();
ClipLayersStack.Add({ defaultMask, defaultBounds });
// Initialize default tint stack
TintLayersStack.Clear();
TintLayersStack.Add({1,1,1,1});
TintLayersStack.Add({ 1, 1, 1, 1 });
// Scissors can be enabled only for 2D orthographic projections
IsScissorsRectEnabled = false;

View File

@@ -157,7 +157,7 @@ public:
/// Pushes tint color.
/// </summary>
/// <param name="tint">The tint color.</param>
/// <param name="inherit">Multiply <see cref="tint"/> by the last tint on the stack.</param>
/// <param name="inherit">Multiply <paramref ref="tint"/> by the last tint on the stack.</param>
API_FUNCTION() static void PushTint(API_PARAM(Ref) const Color& tint, bool inherit = true);
/// <summary>