MCPcopy Create free account
hub / github.com/defold/defold / SetUp

Method SetUp

engine/texc/src/test/test_texc.cpp:400–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398{
399protected:
400 void SetUp() override
401 {
402 const CompileInfo& info = GetParam();
403 uint8_t* image = stbi_load(info.m_Path, &m_Width, &m_Height, 0, 0);
404 ASSERT_TRUE(image != 0);
405
406 m_Image = dmTexc::CreateImage(info.m_Path, m_Width, m_Height, info.m_InputFormat, info.m_ColorSpace, m_Width*m_Height*4, image);
407
408 stbi_image_free(image);
409 }
410
411 void TearDown() override
412 {

Callers

nothing calls this directly

Calls 3

stbi_loadFunction · 0.85
stbi_image_freeFunction · 0.85
CreateImageFunction · 0.50

Tested by

no test coverage detected