diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-09-14 22:31:38 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-13 22:41:06 +0100 |
commit | 8ec46846f6af0da23a1a42f345e40f517ba8f005 (patch) | |
tree | 5e83d115b8e0f6b490e3083c7fdc8edf37fb0ca8 /game | |
parent | 780382ab640815e8e92c59d9147432df855359b4 (diff) | |
download | usdx-8ec46846f6af0da23a1a42f345e40f517ba8f005.tar.gz usdx-8ec46846f6af0da23a1a42f345e40f517ba8f005.tar.xz usdx-8ec46846f6af0da23a1a42f345e40f517ba8f005.zip |
utils: add activator helper
The activator should be used to encapsulate activatable objects. It
calls enable on construction and disable on deconstruction. It should
be used for example to enable some opengl settings, while the
activator object is used in local scope. It ensures, that the opengl
setting get disabled, if the scope is left even when throwing an
exception.
Diffstat (limited to 'game')
0 files changed, 0 insertions, 0 deletions