code: def update_flags(self):
          
          # view mode, filled vs wirefrom
          if self.view['wireframe']:
              gl.glPolygonMode(gl.GL_FRONT_AND_BACK, gl.GL_LINE)
          else:
              gl.glPolygonMode(gl.GL_FRONT_AND_BACK, gl.GL_FILL)
  
          # set fullscreen or windowed
          self.set_fullscreen(fullscreen=self.view['fullscreen'])
  
          # backface culling on or off
          if self.view['cull']:
              gl.glEnable(gl.GL_CULL_FACE)
          else:
              gl.glDisable(gl.GL_CULL_FACE)
  
          # case where we WANT an axis and NO vertexlist
          # is stored internally
          if self.view['axis'] and self._axis is None:
              from .. import creation
              # create an axis marker sized relative to the scene
              axis = creation.axis(origin_size=self.scene.scale / 100)
              # create ordered args for a vertex list
              args = rendering.mesh_to_vertexlist(axis)
              # store the axis as a reference
              self._axis = self.batch.add_indexed(*args)
  
          # case where we DON'T want an axis but a vertexlist
          # IS stored internally
          elif not self.view['axis'] and self._axis is not None:
              # remove the axis from the rendering batch
              self._axis.delete()
              # set the reference to None
              self._axis = None
docs: Check the view flags, and call required GL functions.