glTranslate

multiply the current matrix by a translation matrix

Signature

glTranslate( )->
glTranslate( x , y , z )
glTranslated( GLdouble ( x ) , GLdouble ( y ) , GLdouble ( z ) )-> void
glTranslated( x , y , z )
glTranslatef( GLfloat ( x ) , GLfloat ( y ) , GLfloat ( z ) )-> void
glTranslatef( x , y , z )

Parameters

VariablesDescription
x, y, z
Specify the x , y , and z coordinates of a translation vector.

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.

glTranslate
OpenGLContext tests/arbwindowpos.py Lines: 85
OpenGLContext tests/wgl_font.py Lines: 49
OpenGLContext tests/solid_font.py Lines: 71
OpenGLContext tests/shaders.py Lines: 29, 31
OpenGLContext tests/glut_font.py Lines: 28, 32, 34
OpenGLContext tests/_bitmap_font.py Lines: 44, 49, 51, 63, 65, 78, 80
OpenGLContext OpenGLContext/scenegraph/text/toolsfont.py Lines: 38, 331, 333
OpenGLContext OpenGLContext/scenegraph/text/font.py Lines: 391, 393, 405, 407, 418, 420
OpenGLContext OpenGLContext/move/viewplatform.py Lines: 146
OpenGLContext OpenGLContext/shadow/volume.py Lines: 329
OpenGLContext OpenGLContext/shadow/shadowcontext.py Lines: 26
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 90
OpenGL-Demo py2exe-example/shader_test.py Lines: 91
Glinter Widget.py Lines: 434, 616
{LGPL} PyUI pyui/renderers/openglBase.py Lines: 226
{LGPL} PyUI pyui/renderers/openglPygame.py Lines: 313, 317
{LGPL} PyUI tests/testcube.py Lines: 47
{LGPL} PyUI2 renderers/openglBase.py Lines: 226
{LGPL} PyUI2 renderers/openglPygame.py Lines: 316, 320
{LGPL} PyUI2 system/openglgraphics.py Lines: 368, 372
{LGPL} VisionEgg VisionEgg/MoreStimuli.py Lines: 113, 317
{LGPL} VisionEgg VisionEgg/Textures.py Lines: 1472, 1801
{LGPL} VisionEgg VisionEgg/Text.py Lines: 416, 480
{LGPL} VisionEgg VisionEgg/Gratings.py Lines: 332
{LGPL} PyMT pymt/core/svg/__init__.py Lines: 11, 172, 174
{LGPL or GPL or MPL} Kamaelia Sketches/MPS/Old/SoC/simplecube.py Lines: 80
{LGPL or GPL or MPL} Kamaelia Sketches/MPS/Examples/Checkers/CheckersPiece.py Lines: 56
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Examples/simplecube/simplecube.py Lines: 44
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Examples/Checkers/CheckersPiece.py Lines: 56
{LGPL or GPL or MPL} Kamaelia Sketches/THF/simplecube/simplecube.py Lines: 44
{LGPL or GPL or MPL} Kamaelia Sketches/THF/simplecube/simplecube_controlled.py Lines: 104
{LGPL or GPL or MPL} Kamaelia Sketches/THF/Packages/Examples/Checkers/CheckersPiece.py Lines: 56
Visvis core/cameras.py Lines: 706, 1151, 1173, 1791
Visvis core/base.py Lines: 810
{GPL3} OpenGL-Programmable 01-direct.py Lines: 61, 125
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 136, 229
{GPL3} OpenGL-Programmable 03-array.py Lines: 61, 136
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 156, 262
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 61, 134
{GPL3} OpenGL-Programmable 05-shader.py Lines: 128, 221
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 145, 240
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 62, 155
glTranslated
OpenGLContext OpenGLContext/framecounter.py Lines: 68
OpenGLContext OpenGLContext/wxcontext.py Lines: 311
OpenGLContext OpenGLContext/wxinteractivecontext.py Lines: 19, 23
OpenGLContext OpenGLContext/pygamecontext.py Lines: 149
OpenGLContext OpenGLContext/glutinteractivecontext.py Lines: 17, 21
OpenGLContext OpenGLContext/scenegraph/transform.py Lines: 26, 28, 55
OpenGL-Demo PyOpenGL-Demo/redbook/movelight.py Lines: 100
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson44/glFont.py Lines: 65, 82
{LGPL} PyMT examples/games/untangle/graph.py Lines: 13, 27
{LGPL} PyMT examples/framework/animation/animation.py Lines: 16, 18
glTranslatef
OpenGLContext tests/nehe4.py Lines: 43, 65
OpenGLContext tests/nehe7.py Lines: 138
OpenGLContext tests/nehe6_convolve.py Lines: 137
OpenGLContext tests/glinterleavedarrays.py Lines: 11, 27
OpenGLContext tests/nehe6_timer.py Lines: 82
OpenGLContext tests/nehe3.py Lines: 33, 43
OpenGLContext tests/nehe8.py Lines: 82
OpenGLContext tests/glut_fullscreen.py Lines: 20
OpenGLContext tests/nehe6_multi.py Lines: 76
OpenGLContext tests/readpixelsleak.py Lines: 19
OpenGLContext tests/glarrayelement.py Lines: 16
OpenGLContext tests/saveimage.py Lines: 35
OpenGLContext tests/nehe6.py Lines: 67
OpenGLContext tests/nehe5.py Lines: 26, 32
OpenGLContext tests/redbook_alpha3D.py Lines: 126, 133
OpenGLContext tests/nehe2.py Lines: 46, 55
OpenGLContext OpenGLContext/scenegraph/texturetransform.py Lines: 24, 27, 34
OpenGL-Demo PyOpenGL-Demo/GLUT/glutplane.py Lines: 65, 69
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 85
OpenGL-Demo PyOpenGL-Demo/GLUT/molehill.py Lines: 135
OpenGL-Demo PyOpenGL-Demo/GLUT/gears.py Lines: 145, 151, 157, 217
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/checker.py Lines: 44
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/cone.py Lines: 25
OpenGL-Demo PyOpenGL-Demo/GLE/texas.py Lines: 46
OpenGL-Demo PyOpenGL-Demo/GLE/helix.py Lines: 18
OpenGL-Demo PyOpenGL-Demo/GLE/cone.py Lines: 20
OpenGL-Demo PyOpenGL-Demo/tom/conechecker.py Lines: 29, 52
OpenGL-Demo PyOpenGL-Demo/tom/checker.py Lines: 29
OpenGL-Demo PyOpenGL-Demo/tom/pick.py Lines: 23
OpenGL-Demo PyOpenGL-Demo/tom/conesave.py Lines: 33
OpenGL-Demo PyOpenGL-Demo/tom/fog.py Lines: 61
OpenGL-Demo PyOpenGL-Demo/tom/cone.py Lines: 31
OpenGL-Demo PyOpenGL-Demo/proesch/nurbs/nurbs.py Lines: 147, 158
OpenGL-Demo PyOpenGL-Demo/redbook/teapots.py Lines: 103
OpenGL-Demo PyOpenGL-Demo/redbook/scene.py Lines: 87, 93, 99
OpenGL-Demo PyOpenGL-Demo/redbook/fog.py Lines: 100
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 319, 330, 345, 351
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson4.py Lines: 92, 112
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson41.py Lines: 224
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson2.py Lines: 80, 91
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6.py Lines: 114
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson5.py Lines: 92, 130
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson3.py Lines: 80, 95
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson13.py Lines: 153
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 188, 204, 214
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson45.py Lines: 418
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 151
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 144, 158, 168, 181
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson11.py Lines: 78
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson12.py Lines: 117
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson16.py Lines: 97
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 144, 167, 187
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson44/glCamera.py Lines: 696, 758
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson44/lesson44.py Lines: 194, 361
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson43/glFreeType.py Lines: 124, 172, 294
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson43/lesson43.py Lines: 106, 124
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson48/Lesson48.py Lines: 130, 139
OpenGL-Demo py2exe-example/shader_test.py Lines: 86
{Artistic License} PymmLib applications/glutviewer.py Lines: 230
{Artistic License} PymmLib mmLib/OpenGLDriver.py Lines: 152, 222, 238, 243, 497, 562
{LGPL} PyUI pyui/renderers/openglBase.py Lines: 345
{LGPL} PyUI2 renderers/openglBase.py Lines: 345
{LGPL} PyUI2 system/openglgraphics.py Lines: 214
{LGPL} VisionEgg test/conform.py Lines: 175, 217, 220
{LGPL} VisionEgg VisionEgg/Textures.py Lines: 1883
{LGPL} VisionEgg VisionEgg/Core.py Lines: 812, 878
{LGPL} PyMT examples/desktop/desktop-multi.py Lines: 6, 81, 134
{LGPL} PyMT examples/apps/pictures/pictures.py Lines: 30
{LGPL} PyMT examples/apps/3Dviewer/3Dviewer.py Lines: 53
{LGPL} PyMT examples/apps/3Ddrawing/3Ddrawing.py Lines: 44
{LGPL} PyMT pymt/lib/squirtle.py Lines: 16, 490, 499
{LGPL} PyMT pymt/graphx/draw.py Lines: 227, 567, 590
{LGPL} PyMT pymt/ui/widgets/klist.py Lines: 13, 40
{LGPL} PyMT pymt/ui/widgets/circularslider.py Lines: 8, 148
{LGPL} PyMT pymt/ui/widgets/coverflow.py Lines: 7, 272, 317
{LGPL} PyMT pymt/ui/widgets/speechbubble.py Lines: 11, 99
{LGPL} PyMT pymt/ui/widgets/flippable.py Lines: 8, 136, 137, 142
{LGPL} PyMT pymt/ui/widgets/buttonmatrix.py Lines: 7, 76
{LGPL} PyMT pymt/ui/widgets/objectdisplay.py Lines: 7, 38
{LGPL} PyMT pymt/ui/widgets/composed/vkeyboard.py Lines: 16, 499
{LGPL} PyMT pymt/ui/window/__init__.py Lines: 20, 463, 468, 470
{LGPL} Pyggel pyggel/mesh.py Lines: 211, 302, 759
{LGPL} Pyggel pyggel/font.py Lines: 311, 518, 951, 992
{LGPL} Pyggel pyggel/misc.py Lines: 214, 325
{LGPL} Pyggel pyggel/geometry.py Lines: 140, 295, 445, 574
{LGPL} Pyggel pyggel/image.py Lines: 92, 159
{LGPL} Pyggel pyggel/camera.py Lines: 61, 101, 105
{LGPL} pygl2d pygl2d/draw.py Lines: 110
{LGPL} pygl2d pygl2d/image.py Lines: 177
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Experiments/Spheres.py Lines: 99
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Experiments/Cubes.py Lines: 160
Gloopy gloopy/view/render.py Lines: 130
Visvis core/base.py Lines: 610
Visvis text/text_prerendered.py Lines: 185
Visvis text/text_freetype.py Lines: 582