mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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:
parent
323eaf3fb3
commit
a2e52eb3be
@ -226,12 +226,14 @@ void cogl_pop_matrix (void);
|
||||
* cogl_scale:
|
||||
* @x: Amount to scale along the x-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
|
||||
* and y axes by the given values.
|
||||
* Multiplies the current model-view matrix by one that scales the x,
|
||||
* y and z axes by the given values.
|
||||
*/
|
||||
void cogl_scale (float x,
|
||||
float y);
|
||||
float y,
|
||||
float z);
|
||||
|
||||
/**
|
||||
* cogl_translate:
|
||||
|
@ -213,9 +213,9 @@ cogl_pop_matrix (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
|
||||
|
@ -130,9 +130,9 @@ cogl_pop_matrix (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
|
||||
|
Loading…
Reference in New Issue
Block a user