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

Rend les entités de l'ECS possédant un Transform et un Sprite. More...

#include <filesystem>
#include <optional>
#include <set>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include <DirectXMath.h>
#include "Core/Ecs/Components/Animation.h"
#include "Core/Levels/Level.h"
#include "Core/Levels/Plane.h"
#include "HMI/Graphics/BackgroundRenderer.h"
#include "HMI/Graphics/ComposedScene.h"
#include "HMI/Graphics/PlaneVisuals.h"
#include "HMI/Graphics/SkinCatalog.h"
#include "HMI/Graphics/SpriteBatch.h"

Go to the source code of this file.

Classes

class  hmi::SpriteRenderer
 Pont ECS → écran : dessine chaque entité affichable, triée par calque puis par texture. More...

Namespaces

namespace  core
 Espace de noms du moteur et de la logique de jeu.
namespace  hmi

Functions

void hmi::submitComposedScene (SpriteBatch &batch, const DirectX::XMFLOAT4X4 &projection, const ComposedScene &scene)
 Soumet une scène composée au pipeline de dessin, une passe par groupe de texture.
void hmi::advanceTileAnimations (const SkinCatalog *skins, const std::string &skinSet, TextureCache &cache, float deltaSeconds, std::unordered_map< std::string, core::Animation > &tileAnimations, std::set< std::string > &warnedExclusions)
 Avance l'horloge d'animation partagée des tuiles animées d'un jeu de skins courant (LOT-46 TACHE-05).
SceneTextures hmi::sceneTextures (const TextureAtlas &atlas, TextureCache &cache, const SkinCatalog *skins=nullptr, const std::string &skinSet={}, const std::vector< core::TileTextureOverride > &textureOverrides={}, const std::unordered_map< std::string, core::Animation > &tileAnimations={})
 Textures liables par la composition d'une scène : atlas, damier de repli et skins.
BackgroundTexture hmi::resolveBackgroundTexture (const std::optional< std::string > &background, TextureCache &cache)
 Résout la texture de fond d'un niveau (accès TextureCache/GPU, LOT-44).

Variables

const std::string hmi::SKINS_SUBDIRECTORY = "Skins/"
 Sous-dossier des skins de tuiles, relatif au dossier d'assets (LOT-42).
const std::string hmi::BACKGROUNDS_SUBDIRECTORY = "Backgrounds/"
 Sous-dossier des fonds de niveau, relatif au dossier d'assets (LOT-44).
const std::string hmi::OBJECTS_SUBDIRECTORY = "Objects/"
 Sous-dossier des textures d'objets interactifs, relatif au dossier d'assets (LOT-45).

Detailed Description

Rend les entités de l'ECS possédant un Transform et un Sprite.