JustAnotherDnDGame 0.1.0
Jeu de rôle tactique au d20, vue de dessus, en C++/Qt
Loading...
Searching...
No Matches
BackgroundRenderer.cpp File Reference

Namespaces

namespace  hmi

Functions

BackgroundFit hmi::computeBackgroundFit (float imageWidth, float imageHeight, float targetWidth, float targetHeight) noexcept
 Calcule le recadrage UV d'une image pour couvrir un rectangle cible sans déformation.
void hmi::composeBackground (ComposedScene &scene, const BackgroundTexture &background, int levelWidth, int levelHeight, RenderMode mode)
 Compose le fond du niveau sur RenderLayer::Background, s'il y a lieu.