mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-03 16:29:15 +01:00
[hud] Add method to check whether HUD is empty
This commit is contained in:
parent
5134a4b3c5
commit
8be30d7d5a
@ -20,7 +20,7 @@ namespace dxvk::hud {
|
||||
Hud(const Rc<DxvkDevice>& device);
|
||||
|
||||
~Hud();
|
||||
|
||||
|
||||
/**
|
||||
* \brief Update HUD
|
||||
*
|
||||
@ -40,6 +40,14 @@ namespace dxvk::hud {
|
||||
const DxvkContextObjects& ctx,
|
||||
const Rc<DxvkImageView>& dstView);
|
||||
|
||||
/**
|
||||
* \brief Checks whether the HUD is empty
|
||||
* \returns \c true if the HUD is empty
|
||||
*/
|
||||
bool empty() const {
|
||||
return m_hudItems.empty();
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Adds a HUD item if enabled
|
||||
*
|
||||
|
@ -82,6 +82,14 @@ namespace dxvk::hud {
|
||||
const HudOptions& options,
|
||||
HudRenderer& renderer);
|
||||
|
||||
/**
|
||||
* \brief Checks whether the item set is empty
|
||||
* \returns \c true if there are no items
|
||||
*/
|
||||
bool empty() const {
|
||||
return m_items.empty();
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Creates a HUD item if enabled
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user