MCPcopy Create free account
hub / github.com/defold/defold / ClearTextures

Function ClearTextures

engine/gui/src/gui.cpp:804–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802 }
803
804 void ClearTextures(HScene scene)
805 {
806 scene->m_Textures.Clear();
807 uint32_t n = scene->m_Nodes.Size();
808 InternalNode* nodes = scene->m_Nodes.Begin();
809 for (uint32_t i = 0; i < n; ++i)
810 {
811 Node& node = nodes[i].m_Node;
812 if (node.m_TextureType == NODE_TEXTURE_TYPE_TEXTURE_SET)
813 {
814 CancelNodeFlipbookAnim(scene, GetNodeHandle(&nodes[i]));
815 }
816 node.m_Texture = 0;
817 node.m_TextureType = NODE_TEXTURE_TYPE_NONE;
818 }
819 }
820
821 static inline TextureInfo* GetTextureInfo(HScene scene, dmhash_t texture_id)
822 {

Callers 2

TEST_FFunction · 0.50
CompGuiOnReloadFunction · 0.50

Calls 5

CancelNodeFlipbookAnimFunction · 0.70
GetNodeHandleFunction · 0.70
ClearMethod · 0.45
SizeMethod · 0.45
BeginMethod · 0.45

Tested by 1

TEST_FFunction · 0.40