Package pygext :: Package gl :: Package shapes :: Module base
[frames | no frames]

Module pygext.gl.shapes.base

The base GLShape class and basic operations
Classes
FuncObject A shape object which is drawn in an external function.
GLShape Abstract pygext.gl graphics object

Function Summary
  combine(*shapes)
combine(shape1, shape2, shape3, ...) -> GLShape
  draw_shape(shape, x, y, rot, scale, color, glPushMatrix, glTranslatef, glRotatef, glScalef, glColor4b, glColor4f, glPopMatrix)
draw_shape(shape, x, y, rotation=0, scale=1.0) -> None

Function Details

combine(*shapes)

combine(shape1, shape2, shape3, ...) -> GLShape

Creates a new shape object by combining several existing shape objects. After combining, the individual shapes can no longer be accessed or modified.

If you want an object whose sub-objects you can manipulate later, use the Composite object.

draw_shape(shape, x, y, rot=0, scale=1.0, color=None, glPushMatrix=<built-in function glPushMatrix>, glTranslatef=<built-in function glTranslatef>, glRotatef=<built-in function glRotatef>, glScalef=<built-in function glScalef>, glColor4b=<built-in function glColor4b>, glColor4f=<built-in function glColor4f>, glPopMatrix=<built-in function glPopMatrix>)

draw_shape(shape, x, y, rotation=0, scale=1.0) -> None

Draw a pygext.gl shape to the display. Note: you must call pygext.gl.flip_screen() for the changes to become visible.

Generated by Epydoc 2.1 on Mon Jun 12 18:21:21 2006 http://epydoc.sf.net