MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / IsReady

Method IsReady

Source/Engine/Level/Scene/Lightmap.cpp:145–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145bool Lightmap::IsReady() const
146{
147 // TODO: link for events and cache this to be a boolean value
148 return _textures[0] && _textures[0]->GetTexture()->ResidentMipLevels() > 0
149 && _textures[1] && _textures[1]->GetTexture()->ResidentMipLevels() > 0
150 && _textures[2] && _textures[2]->GetTexture()->ResidentMipLevels() > 0;
151}
152
153#if USE_EDITOR
154

Callers 5

UpdateAnimationMethod · 0.45
DrawMethod · 0.45
DrawMethod · 0.45
ApplySkyMethod · 0.45
GetReadyLightmapMethod · 0.45

Calls 1

GetTextureMethod · 0.80

Tested by

no test coverage detected