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

Function OnWindowResizeCallback

engine/gui/src/test/test_gui.cpp:103–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void OnWindowResizeCallback(const dmGui::HScene scene, uint32_t width, uint32_t height)
104{
105 dmGui::SetSceneResolution(scene, width, height);
106 dmGui::SetDefaultResolution(scene->m_Context, width, height);
107}
108
109dmGui::FetchTextureSetAnimResult FetchTextureSetAnimCallback(dmGui::HTextureSource texture_source, dmhash_t animation, dmGui::TextureSetAnimDesc* out_data)
110{

Callers

nothing calls this directly

Calls 2

SetSceneResolutionFunction · 0.50
SetDefaultResolutionFunction · 0.50

Tested by

no test coverage detected