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

Method UpdateTexture

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

Source from the content-addressed store, hash-verified

52}
53
54void Lightmap::UpdateTexture(Texture* texture, int32 index)
55{
56 auto& prev = _textures[index];
57 if (prev.Get() != texture)
58 {
59 LOG(Info, "Changing lightmap {0} texture {1} from '{2}' to '{3}'", _index, index, prev ? prev->ToString() : String::Empty, texture ? texture->ToString() : String::Empty);
60 prev = texture;
61 }
62}
63
64void Lightmap::EnsureSize(int32 size)
65{

Callers 3

UpdateLightmapsMethod · 0.45
onJobRenderMethod · 0.45
runMethod · 0.45

Calls 2

GetMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected