mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-04 01:29:26 +01:00
[hud] Add method to check whether HUD is empty
This commit is contained in:
parent
5134a4b3c5
commit
8be30d7d5a
@ -40,6 +40,14 @@ namespace dxvk::hud {
|
|||||||
const DxvkContextObjects& ctx,
|
const DxvkContextObjects& ctx,
|
||||||
const Rc<DxvkImageView>& dstView);
|
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
|
* \brief Adds a HUD item if enabled
|
||||||
*
|
*
|
||||||
|
@ -82,6 +82,14 @@ namespace dxvk::hud {
|
|||||||
const HudOptions& options,
|
const HudOptions& options,
|
||||||
HudRenderer& renderer);
|
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
|
* \brief Creates a HUD item if enabled
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user