JustAnotherDnDGame 0.1.0
Jeu de rôle tactique au d20, vue de dessus, en C++/Qt
Loading...
Searching...
No Matches
RhiContext.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
6class QRhi;
7class QRhiResourceUpdateBatch;
8
14
15namespace hmi {
16
34struct RhiContext {
36 QRhi* rhi = nullptr;
38 QRhiResourceUpdateBatch* updates = nullptr;
39
41 [[nodiscard]] bool ready() const noexcept {
42 return rhi != nullptr && updates != nullptr;
43 }
44};
45
46} // namespace hmi
Definition AudioEngine.cpp:15
Le QRhi courant et le lot de téléversements de l'image en cours.
Definition RhiContext.h:34
QRhi * rhi
Interface de rendu courante, ou nullptr avant la première initialisation.
Definition RhiContext.h:36
bool ready() const noexcept
Definition RhiContext.h:41
QRhiResourceUpdateBatch * updates
Lot de mises à jour de l'image en cours, ou nullptr hors d'une image.
Definition RhiContext.h:38