Support scaling on the z axis with cogl_scale

This simply adds a z argument to cogl_scale and updates clutter-actor.c
to pass 1.0 for the z scale.
This commit is contained in:
Robert Bragg 2009-01-26 22:52:38 +00:00
parent 323eaf3fb3
commit a2e52eb3be
3 changed files with 9 additions and 7 deletions

View File

@ -226,12 +226,14 @@ void cogl_pop_matrix (void);
* cogl_scale: * cogl_scale:
* @x: Amount to scale along the x-axis * @x: Amount to scale along the x-axis
* @y: Amount to scale along the y-axis * @y: Amount to scale along the y-axis
* @z: Amount to scale along the z-axis
* *
* Multiplies the current model-view matrix by one that scales the x * Multiplies the current model-view matrix by one that scales the x,
* and y axes by the given values. * y and z axes by the given values.
*/ */
void cogl_scale (float x, void cogl_scale (float x,
float y); float y,
float z);
/** /**
* cogl_translate: * cogl_translate:

View File

@ -213,9 +213,9 @@ cogl_pop_matrix (void)
} }
void void
cogl_scale (float x, float y) cogl_scale (float x, float y, float z)
{ {
GE( glScalef (x, y, 1.0) ); GE( glScalef (x, y, z) );
} }
void void

View File

@ -130,9 +130,9 @@ cogl_pop_matrix (void)
} }
void void
cogl_scale (float x, float y) cogl_scale (float x, float y, float z)
{ {
GE( glScalef (x, y, 1.0) ); GE( glScalef (x, y, z) );
} }
void void