Okay thanks
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
SDL_GetWindowSize(window, &windowSizeScreenCoords.x, &windowSizeScreenCoords.y);
SDL_GetWindowSizeInPixels(window, &windowSizePixels.x, &windowSizePixels.y);
float dpiScale = static_cast<float>(windowSizePixels.y) / static_cast<float>(windowSizeScreenCoords.y);
gui.setRelativeView({0, 0, 1.0f / dpiScale, 1.0f / dpiScale});
auto testTexture = tgui::Texture(resourcePath + "/images/test.svg");
auto testPic = tgui::Picture::create(testTexture);
testPic->setOrigin({0.5f, 0.5f});
testPic->setPosition("50%", "50%");
testPic->setScale(5);
panel()->onShowEffectFinish([=](tgui::ShowEffectType effect, bool visible) {
std::cout << "animation finished" << std::endl;
});