aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/activator.hpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* remove semicolon after namespaceAlexander Sulfrian2014-05-041-1/+1
| | | | | Class definitions have to end with a semicolon but not namespaces. So remove this everywhere.
* utils/activator: removed unnecessary templateAlexander Sulfrian2013-01-211-16/+6
|
* utils: add activator helperAlexander Sulfrian2013-01-131-0/+55
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.