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:
|
* 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:
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user