rotate


Description:


public void rotate (float angle, float x, float y, float z)

Multiplies the current model-view matrix by one that rotates the model around the vertex specified by x, y and z.

Note:

Use cogl_framebuffer_rotate instead

The rotation follows the right-hand thumb rule so for example rotating by 10 degrees about the vertex (0, 0, 1) causes a small counter-clockwise rotation.

Parameters:

angle

Angle in degrees to rotate.

x

X-component of vertex to rotate around.

y

Y-component of vertex to rotate around.

z

Z-component of vertex to rotate around.


Namespace: Cogl
Package: cogl-1.0