JustAnotherDnDGame 0.1.0
Jeu de rôle tactique au d20, vue de dessus, en C++/Qt
Loading...
Searching...
No Matches
hmi::PixelHistoryEntry Struct Reference

Une entrée d'historique : la région affectée, son contenu avant et après l'opération. More...

#include <PixelHistory.h>

Public Attributes

PixelOperationKind kind = PixelOperationKind::Brush
PixelRegion region
std::vector< std::uint32_t > before
std::vector< std::uint32_t > after

Detailed Description

Une entrée d'historique : la région affectée, son contenu avant et après l'opération.

Mémoriser la région plutôt qu'une copie complète de l'image borne le coût mémoire de l'historique (épic, section « Découpage » TACHE-02). before/after ont pour taille region.width() * region.height() (capturés via hmi::readRegion).

Member Data Documentation

◆ after

std::vector<std::uint32_t> hmi::PixelHistoryEntry::after

◆ before

std::vector<std::uint32_t> hmi::PixelHistoryEntry::before

◆ kind

PixelOperationKind hmi::PixelHistoryEntry::kind = PixelOperationKind::Brush

◆ region

PixelRegion hmi::PixelHistoryEntry::region

The documentation for this struct was generated from the following file:
  • /home/runner/work/JustAnotherDnDGame/JustAnotherDnDGame/Source/HMI/Editor/PixelHistory.h