4.1.3.19. Transforms

PyOpenGLng.HighLevelApi.Transforms.frustum(left, right, bottom, top, near, far)[source]
left, right
Specify the coordinates for the left and right vertical clipping planes.
bottom, top
Specify the coordinates for the bottom and top horizontal clipping planes.
near, far
Specify the distances to the near and far depth clipping planes. Both distances must be positive.
PyOpenGLng.HighLevelApi.Transforms.identity()[source]
PyOpenGLng.HighLevelApi.Transforms.look_at(matrix, eye, center, up)[source]
eye_x, eye_y, eye_z
Specifies the position of the eye point.

center_x, center_y, center_z Specifies the position of the reference point.

up_x, up_y, up_z Specifies the direction of the up vector.

PyOpenGLng.HighLevelApi.Transforms.ortho(left, right, bottom, top, near, far)[source]
left, right
Specify the coordinates for the left and right vertical clipping planes.
bottom, top
Specify the coordinates for the bottom and top horizontal clipping planes.
near, far
Specify the distances to the nearer and farther depth clipping planes. These values are negative if the plane is to be behind the viewer.
PyOpenGLng.HighLevelApi.Transforms.perspective(fovy, aspect, near, far)[source]
fovy
Specifies the field of view angle, in degrees, in the y direction.
aspect
Specifies the aspect ratio that determines the field of view in the x direction. the aspect ratio is the ratio of x (width) to y (height).
near
Specifies the distance from the viewer to the near clipping plane (always positive).
far
Specifies the distance from the viewer to the far clipping plane (always positive).
PyOpenGLng.HighLevelApi.Transforms.rotate(matrix, x, y, z, angle)[source]
PyOpenGLng.HighLevelApi.Transforms.rotate_x(matrix, theta)[source]
PyOpenGLng.HighLevelApi.Transforms.rotate_y(matrix, theta)[source]
PyOpenGLng.HighLevelApi.Transforms.rotate_z(matrix, theta)[source]
PyOpenGLng.HighLevelApi.Transforms.scale(matrix, x, y, z)[source]
PyOpenGLng.HighLevelApi.Transforms.translate(matrix, x, y, z)[source]

in-place translation

Previous topic

4.1.3.18. TextureVertexArray

Next topic

4.1.3.20. Type

This Page