changed 'enum class' to 'enum' to be able to do some low-level operations on it.
added some comments and transformed the interface clearmask to an openGL readable clearmask