Add inherit param.
This commit is contained in:
@@ -812,11 +812,11 @@ void Render2D::PopClip()
|
|||||||
OnClipScissors();
|
OnClipScissors();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Render2D::PushTint(const Color& tint)
|
void Render2D::PushTint(const Color& tint, bool inherit)
|
||||||
{
|
{
|
||||||
RENDER2D_CHECK_RENDERING_STATE;
|
RENDER2D_CHECK_RENDERING_STATE;
|
||||||
|
|
||||||
TintLayersStack.Push(tint * TintLayersStack.Peek());
|
TintLayersStack.Push(inherit ? tint * TintLayersStack.Peek() : tint);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Render2D::PeekTint(Color& tint)
|
void Render2D::PeekTint(Color& tint)
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ public:
|
|||||||
/// Pushes tint color.
|
/// Pushes tint color.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="tint">The tint color.</param>
|
/// <param name="tint">The tint color.</param>
|
||||||
API_FUNCTION() static void PushTint(API_PARAM(Ref) const Color& tint);
|
API_FUNCTION() static void PushTint(API_PARAM(Ref) const Color& tint, bool inherit = true);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Peeks the current tint color.
|
/// Peeks the current tint color.
|
||||||
|
|||||||
Reference in New Issue
Block a user