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

Method HasAlpha

Source/Engine/Tools/TextureTool/TextureTool.cpp:201–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199#if USE_EDITOR
200
201bool TextureTool::HasAlpha(const StringView& path)
202{
203 // Try to hit the cache (eg. if texture was already imported before)
204 if (!TexturesHasAlphaCache.ContainsKey(path))
205 {
206 TextureData textureData;
207 if (ImportTexture(path, textureData))
208 return false;
209 }
210 return TexturesHasAlphaCache[path];
211}
212
213#endif
214

Callers

nothing calls this directly

Calls 2

ImportTextureFunction · 0.50
ContainsKeyMethod · 0.45

Tested by

no test coverage detected