aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/activatable.hpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* utils: add activator helperAlexander Sulfrian2013-01-131-0/+38
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.