glScale

multiply the current matrix by a general scaling matrix

Signature

glScale( )->
glScale( x , y , z )
glScaled( GLdouble ( x ) , GLdouble ( y ) , GLdouble ( z ) )-> void
glScaled( x , y , z )
glScalef( GLfloat ( x ) , GLfloat ( y ) , GLfloat ( z ) )-> void
glScalef( x , y , z )

Parameters

VariablesDescription
x, y, z
Specify scale factors along the x , y , and z axes, respectively.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glScale
OpenGLContext tests/shader_3.py Lines: 161
{LGPL} PyMT pymt/core/svg/__init__.py Lines: 11, 173
Visvis wibjects/colorWibjects.py Lines: 529
Visvis core/cameras.py Lines: 701, 1169, 1787
Visvis core/base.py Lines: 812
{GPL3} OpenGL-Programmable 01-direct.py Lines: 64, 86, 126
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 139, 195, 230
{GPL3} OpenGL-Programmable 03-array.py Lines: 64, 102, 137
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 159, 217, 263
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 64, 91, 135
{GPL3} OpenGL-Programmable 05-shader.py Lines: 131, 187, 222
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 148, 206, 241
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 65, 121, 156
glScaled
OpenGLContext OpenGLContext/scenegraph/transform.py Lines: 46
{LGPL} PyMT examples/games/tictactoe/tictactoe.py Lines: 102
{LGPL} PyMT examples/games/untangle/graph.py Lines: 18
glScalef
OpenGLContext tests/redbook_trim.py Lines: 101
OpenGLContext tests/redbook_surface.py Lines: 74
OpenGLContext tests/redbook_surface_cb.py Lines: 91
OpenGL-Demo PyOpenGL-Demo/GLUT/glutplane.py Lines: 68
OpenGL-Demo PyOpenGL-Demo/redbook/cube.py Lines: 72
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 164
Glinter Widget.py Lines: 618
{Artistic License} PymmLib applications/glutviewer.py Lines: 236
{Artistic License} PymmLib mmLib/OpenGLDriver.py Lines: 437
{LGPL} VisionEgg test/conform.py Lines: 201, 219
{LGPL} VisionEgg VisionEgg/Core.py Lines: 838
{LGPL} PyMT examples/apps/pictures/pictures.py Lines: 32
{LGPL} PyMT examples/apps/3Dviewer/3Dviewer.py Lines: 91
{LGPL} PyMT examples/apps/3Ddrawing/3Ddrawing.py Lines: 138
{LGPL} PyMT pymt/lib/squirtle.py Lines: 16, 495, 497
{LGPL} PyMT pymt/graphx/draw.py Lines: 228
{LGPL} PyMT pymt/ui/widgets/composed/vkeyboard.py Lines: 16, 516, 519
{LGPL} PyMT pymt/ui/window/__init__.py Lines: 19, 457
{LGPL} Pyggel pyggel/mesh.py Lines: 218, 220, 308, 310, 765, 767
{LGPL} Pyggel pyggel/font.py Lines: 317, 319, 524, 526, 958, 960, 1000, 1002
{LGPL} Pyggel pyggel/misc.py Lines: 220, 222, 331, 333
{LGPL} Pyggel pyggel/geometry.py Lines: 145, 148, 151, 301, 303, 305, 451, 453, 579, 581, 583
{LGPL} Pyggel pyggel/scene.py Lines: 194
{LGPL} Pyggel pyggel/image.py Lines: 99, 101, 166, 168
{LGPL} Pyggel pyggel/view.py Lines: 315
{LGPL} pygl2d pygl2d/image.py Lines: 180
{GPL} Scocca scocca/graphics/opengl/transformations.py Lines: 22, 25, 28, 34