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

Function DynamicSetTextureData

engine/gui/src/test/test_gui_script.cpp:1401–1405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1399}
1400
1401static void DynamicSetTextureData(dmGui::HScene scene, dmhash_t path_hash, uint32_t width, uint32_t height, dmImage::Type type, dmImage::CompressionType compression_type, const void* buffer, uint32_t buffer_size)
1402{
1403 dmGuiScriptTest* self = (dmGuiScriptTest*) scene->m_UserData;
1404 self->m_DynamicTextures.Set(path_hash, width, height, type, buffer);
1405}
1406
1407TEST_F(dmGuiScriptTest, TestRecreateDynamicTexture)
1408{

Callers

nothing calls this directly

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected