MCPcopy Create free account
hub / github.com/Illation/ETEngine / ~SpriteFont

Method ~SpriteFont

Engine/source/EtRendering/GraphicsTypes/SpriteFont.cpp:65–71  ·  view source on GitHub ↗

--------------------------------- SpriteFont::d-tor Destroy the texture data if it was not loaded from the resource managegr

Source from the content-addressed store, hash-verified

63// Destroy the texture data if it was not loaded from the resource managegr
64//
65SpriteFont::~SpriteFont()
66{
67 if (m_TextureAsset == nullptr)
68 {
69 SafeDelete(m_pTexture);
70 }
71}
72
73//---------------------------------
74// SpriteFont::GetMetric

Callers

nothing calls this directly

Calls 1

SafeDeleteFunction · 0.85

Tested by

no test coverage detected