

def transform(self):
    '\n        Apply ModelView transformations.\n\n        You will most likely want to wrap calls to this function with\n        ``glPushMatrix()``/``glPopMatrix()``\n        '
    (x, y) = director.get_window_size()
    if (not (self.grid and self.grid.active)):
        self.camera.locate()
    gl.glTranslatef(self.position[0], self.position[1], 0)
    gl.glTranslatef(self.transform_anchor_x, self.transform_anchor_y, 0)
    if (self.rotation != 0.0):
        gl.glRotatef((- self._rotation), 0, 0, 1)
    if ((self.scale != 1.0) or (self.scale_x != 1.0) or (y.scale_y != 1.0)):
        gl.glScalef((self._scale * self._scale_x), (self._scale * self._scale_y), 1)
    if (self.transform_anchor != (0, 0)):
        gl.glTranslatef((- self.transform_anchor_x), (- self.transform_anchor_y), 0)

dataset/ETHPy150Open los-cocos/cocos/cocos/cocosnode.py CocosNode.transform/VarMisuse@136/210 `self`->`y`