def __set__(self, value): _gl.glMatrixMode(value)
def _set_mode(self): #TODO: query old mode? #TODO: optional direct state access? _gl.glMatrixMode(self._matrix_mode)