code: def write(self, face, data, viewport=None, *, alignment=1) -> None:
          '''
              Update the content of the texture.
  
              Args:
                  face (int): The face to update.
                  data (bytes): The pixel data.
                  viewport (tuple): The viewport.
  
              Keyword Args:
                  alignment (int): The byte alignment of the pixels.
          '''
  
          if type(data) is Buffer:
              data = data.mglo
  
          self.mglo.write(face, data, viewport, alignmentf write(self, face, data, viewport=None, *, alignment=1) -> None:
          '''
              Update the content of the texture.
  
              Args:
                  face (int): The face to update.
                  data (bytes): The pixel data.
                  viewport (tuple): The viewport.
  
              Keyword Args:
                  alignment (int): The byte alignment of the pixels.
          '''
  
          if type(data) is Buffer:
              data = data.mglo
  
          self.mglo.write(face, data, viewport, alignment)
docs: Update the content of the texture.
  
              Args:
                  face (int): The face to update.
                  data (bytes): The pixel data.
                  viewport (tuple): The viewport.
  
              Keyword Args:
                  alignment (int): The byte alignment of the pixels.