cogl: renames cogl_multiply_matrix to cogl_transform
Although cogl_multiply_matrix was consistent with OpenGL, after further consideration it was agreed that cogl_transform is a better name. Given that it's in the global cogl_ namespace cogl_transform seems more self documenting.
This commit is contained in:
parent
412a468d5e
commit
45885850d2
@ -938,7 +938,7 @@ cogl_rotate (float angle, float x, float y, float z)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cogl_multiply_matrix (const CoglMatrix *matrix)
|
cogl_transform (const CoglMatrix *matrix)
|
||||||
{
|
{
|
||||||
CoglMatrixStack *modelview_stack =
|
CoglMatrixStack *modelview_stack =
|
||||||
_cogl_framebuffer_get_modelview_stack (_cogl_get_framebuffer ());
|
_cogl_framebuffer_get_modelview_stack (_cogl_get_framebuffer ());
|
||||||
|
@ -348,7 +348,7 @@ cogl_rotate (float angle,
|
|||||||
float z);
|
float z);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cogl_multiply_matrix:
|
* cogl_transform:
|
||||||
* @matrix: the matrix to multiply with the current model-view
|
* @matrix: the matrix to multiply with the current model-view
|
||||||
*
|
*
|
||||||
* Multiplies the current model-view matrix by the given matrix.
|
* Multiplies the current model-view matrix by the given matrix.
|
||||||
@ -356,7 +356,7 @@ cogl_rotate (float angle,
|
|||||||
* Since: 1.4
|
* Since: 1.4
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
cogl_multiply_matrix (const CoglMatrix *matrix);
|
cogl_transform (const CoglMatrix *matrix);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cogl_get_modelview_matrix:
|
* cogl_get_modelview_matrix:
|
||||||
|
@ -27,6 +27,7 @@ cogl_pop_matrix
|
|||||||
cogl_scale
|
cogl_scale
|
||||||
cogl_translate
|
cogl_translate
|
||||||
cogl_rotate
|
cogl_rotate
|
||||||
|
cogl_transform
|
||||||
cogl_frustum
|
cogl_frustum
|
||||||
cogl_perspective
|
cogl_perspective
|
||||||
cogl_ortho
|
cogl_ortho
|
||||||
|
Loading…
Reference in New Issue
Block a user