MCPcopy Create free account
hub / github.com/carbonengine/trinity / OnPrepareResources

Method OnPrepareResources

trinity/Tr2TextureArray.cpp:136–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136bool Tr2TextureArray::OnPrepareResources()
137{
138 if( !m_texture.IsValid() && !m_elements.empty() )
139 {
140 m_texture = CreateTexture();
141 m_onTextureChange();
142 }
143 return true;
144}
145
146Tr2TextureAL Tr2TextureArray::CreateTexture() const
147{

Callers

nothing calls this directly

Calls 3

CreateTextureFunction · 0.85
emptyMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected