MCPcopy Create free account
hub / github.com/Illation/ETEngine / SetColor

Method SetColor

Engine/source/EtFramework/Components/SpriteComponent.cpp:103–110  ·  view source on GitHub ↗

--------------------------- SpriteComponent::SetColor

Source from the content-addressed store, hash-verified

101// SpriteComponent::SetColor
102//
103void SpriteComponent::SetColor(vec4 const& color)
104{
105 m_Color = color;
106 if (m_Id != core::INVALID_SLOT_ID)
107 {
108 UnifiedScene::Instance().GetRenderScene().UpdateSpriteColor(m_Id, m_Color);
109 }
110}
111
112
113//=============================

Callers

nothing calls this directly

Calls 1

UpdateSpriteColorMethod · 0.80

Tested by

no test coverage detected