NvTweakVar.h File Reference
Implements a system for indirect referencing of physical C variables from an abstracted object, by keeping a reference to a variable along with an 'action code' that can be used to connect up with NvTweakBar widgets, NvSampleApp's input mapping, or other custom code. More...
#include <NvFoundation.h>
Go to the source code of this file.
Classes | |
struct | NvTweakVarBase |
This is an abstract base class for indirectly referencing app variables. More... | |
struct | NvTweakVar< T > |
Templated class for holding a reference to a variable of a particular datatype. More... | |
struct | NvTweakCmd |
Enum of 'tweak' commands we can apply to a given NvTweakVar. More... | |
struct | NvTweakBind |
Pair of NvTweakCmd and NvTweakVarBase that we can look up as a bound result for some user input. More... |
Detailed Description
Implements a system for indirect referencing of physical C variables from an abstracted object, by keeping a reference to a variable along with an 'action code' that can be used to connect up with NvTweakBar widgets, NvSampleApp's input mapping, or other custom code.This allows the developer to 'tweak' the value of a given variable across these different helper systems without any of them knowing directly of the bound variable.