| ENTRY | DOWNLOAD | MANUAL | ONGOING | |
plane()Draws a filled rectangle in space. This is a high level alternative to using OpenGL calls directly. Fill color is set with glColor4f().
plane(x, y, width, height)
plane(x, y, z, width, height)
Relevant examples: shape2D.py , shape3D.py , points.py , curve.py , line.py , ALL In Context
def onDraw(self):
plane(0, 0, 0, 1, 1)
def onDraw(self):
glColor4f(1.0, 0.5, 0.5, 1.0)
plane(0, 0, 0, 1, 1)
def onDrawOrtho(self):
plane(200, 200, 50, 50)
|
|
|
Initiated by Stephan Hechenberger Thanks to CADRE's 103 |
|