def drawPolygon(*points, **options): if isinstance(points[0], tuple): if isinstance(points[0][0], list): GraphicsController.drawPolygon(points[0][0], points[1]) return if 'rotation' in options: GraphicsController.drawPolygon(points, options["rotation"]) else: GraphicsController.drawPolygon(points, 0)
def drawCircle(x, y, radius, rotation = 0): GraphicsController.drawCircle(x, y, radius)
def drawRectangle(x, y, width, height, rotation = 0): GraphicsController.drawRectangle(x, y, width, height, rotation)
def GLscale(sx, sy): GraphicsController.GLscale(sx, sy)
def drawRectangle(x, y, width, height): GraphicsController.drawRectangle(x, y, width, height)
def getStringDimensions(string): return GraphicsController.getStringDimensions(string)
def drawPoint(x, y): GraphicsController.drawPoint(x, y)
def drawRegularPolygon(x, y, order, size, rotation = 0): if not order >= 3: raise Exception("A polygon must have more than two vertices, DUMBASS!") GraphicsController.drawRegularPolygon(x, y, int(order), size, rotation)
def drawImage(image, x, y, width, height): GraphicsController.drawImage(image, x, y, width, height)
def loadImage(src, smooth = True, animatedImageCountX = 1): return GraphicsController.loadImage(src, smooth, animatedImageCountX)
def drawString(x, y, string): GraphicsController.drawString(x, y, string)
def drawCircle(x, y, radius): GraphicsController.drawCircle(x, y, radius)
def drawEllipse(x, y, radiusX, radiusY, rotation = 0): GraphicsController.drawEllipse(x, y, radiusX, radiusY, rotation)
def GLpush(): GraphicsController.GLpush()
def GLpop(): GraphicsController.GLpop()
def drawLine(x1, y1, x2, y2): GraphicsController.drawLine(x1, y1, x2, y2)
def GLtranslate( dx, dy): GraphicsController.GLtranslate(dx, dy)
def drawString(x, y, string, size = 1, rotation = 0, centered = True): GraphicsController.drawString(x, y, str(string), size, rotation, centered)
def GLrotate(angle): GraphicsController.GLrotate(angle)
def setWireFrame(enabled): GraphicsController.setWireFrame(enabled)
def loadImage(src): return GraphicsController.loadImage(src)