diff options
author | Kitty Barnett <develop@catznip.com> | 2024-08-31 01:33:27 +0200 |
---|---|---|
committer | Kitty Barnett <develop@catznip.com> | 2024-08-31 22:16:46 +0200 |
commit | c820bb2929a37fb222ce0d7368d699e81f5edc00 (patch) | |
tree | 30f4f17db0b39738ba23b68c3d20b7f5afa0fe4f /indra/newview/rlvhandler.h | |
parent | e92a06d68114c933599da12d75221504ebac77e0 (diff) |
Minimal code needed to add RLVa with an on/off toggle
Diffstat (limited to 'indra/newview/rlvhandler.h')
-rw-r--r-- | indra/newview/rlvhandler.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/indra/newview/rlvhandler.h b/indra/newview/rlvhandler.h new file mode 100644 index 0000000000..0d4cbe98fb --- /dev/null +++ b/indra/newview/rlvhandler.h @@ -0,0 +1,25 @@ +#pragma once + +#include "llsingleton.h" + +#include "rlvdefines.h" + +// ============================================================================ +// RlvHandler class +// + +class RlvHandler : public LLSingleton<RlvHandler> +{ + LLSINGLETON_EMPTY_CTOR(RlvHandler); + +public: + // Initialization (deliberately static so they can safely be called in tight loops) + static bool canEnable(); + static bool isEnabled() { return mIsEnabled; } + static bool setEnabled(bool enable); + +private: + static bool mIsEnabled; +}; + +// ============================================================================ |