JustAnotherDnDGame 0.1.0
Jeu de rôle tactique au d20, vue de dessus, en C++/Qt
Loading...
Searching...
No Matches
PixelAutotilePreview.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Valentin Eloy
2// SPDX-License-Identifier: GPL-3.0-or-later
3
4#pragma once
5
6#include <optional>
7
10
22
23namespace hmi {
24
30[[nodiscard]] bool isBitmask16Candidate(const DecodedImage& image, int tileSize) noexcept;
31
41[[nodiscard]] std::optional<AutotileCell> bitmaskCellAtPixel(const DecodedImage& image,
42 int tileSize, int x, int y) noexcept;
43
55[[nodiscard]] DecodedImage buildAutotileAssemblyPreview(const DecodedImage& sheet, int tileSize);
56
57} // namespace hmi
Opérations pures sur un tampon de pixels RGBA (atelier pixel art, LOT-54 TACHE-02).
Raccords automatiques : voisinage solide → case d'une planche 4×4 (EX-EDIT-025).
Definition AudioEngine.cpp:15
bool isBitmask16Candidate(const DecodedImage &image, int tileSize) noexcept
true si image a exactement les dimensions d'une planche à raccords bitmask16.
Definition PixelAutotilePreview.cpp:8
std::optional< AutotileCell > bitmaskCellAtPixel(const DecodedImage &image, int tileSize, int x, int y) noexcept
Case de la planche sous un pixel donné.
Definition PixelAutotilePreview.cpp:16
DecodedImage buildAutotileAssemblyPreview(const DecodedImage &sheet, int tileSize)
Construit l'aperçu d'assemblage 3×3 démonstratif à partir de la planche en cours.
Definition PixelAutotilePreview.cpp:27
Pixels RGBA décodés d'un fichier image, alpha non prémultiplié (cohérent avec le mélange du pipeline ...
Definition TextureLoader.h:27