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

Method SetTexture

Engine/source/EtFramework/Components/SpriteComponent.cpp:79–86  ·  view source on GitHub ↗

----------------------------- SpriteComponent::SetTexture

Source from the content-addressed store, hash-verified

77// SpriteComponent::SetTexture
78//
79void SpriteComponent::SetTexture(core::HashString const textureAsset)
80{
81 m_TextureAssetId = textureAsset;
82 if (m_Id != core::INVALID_SLOT_ID)
83 {
84 UnifiedScene::Instance().GetRenderScene().UpdateSpriteTexture(m_Id, m_TextureAssetId);
85 }
86}
87
88//---------------------------
89// SpriteComponent::SetPivot

Callers

nothing calls this directly

Calls 1

UpdateSpriteTextureMethod · 0.80

Tested by

no test coverage detected