class_docstr: Class that provides a series of GL functions that do not fit
  in the object oriented part of gloo. An instance of this class is
  associated with each canvas.
docstr: Set the scale and units used to calculate depth values
  
  Parameters
  ----------
  factor : float
      Scale factor used to create a variable depth offset for
      each polygon.
  units : float
      Multiplied by an implementation-specific value to create a
      constant depth offset.
docstr_tok: ["Set","the","scale","and","units","used","to","calculate","depth","values","Parameters","--","--","--","--","--","factor",":","float","Scale","factor","used","to","create","a","variable","depth","offset","for","each","polygon",".","units",":","float","Multiplied","by","an","implementation-specific","value","to","create","a","constant","depth","offset","."]
code: def set_polygon_offset(self, factor=0.0, units=0.0):
      """Set the scale and units used to calculate depth values
  
      Parameters
      ----------
      factor : float
          Scale factor used to create a variable depth offset for
          each polygon.
      units : float
          Multiplied by an implementation-specific value to create a
          constant depth offset.
      """
      self.glir.command(
          "FUNC", "glPolygonOffset", float(factor), float(units)
      )
  
imports: import numpy
  from copy import deepcopy
  from .None import gl
  from ..color import Color
  from ..util import logger
label_desc: Use image node_id 6 for calling the BaseGlooFunctions obj's underlying member method code with example usage: obj.set_polygon_offset(factor, units) without return types