Replace the CoglMatrix type by graphene_matrix_t

CoglMatrix already is a typedef to graphene_matrix_t. This commit
simply drops the CoglMatrix type, and align parameters. There is
no functional change here, it's simply a find-and-replace commit.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1439
This commit is contained in:
Georges Basile Stavracas Neto
2020-09-11 15:57:28 -03:00
parent cedb5318da
commit 3e0c961b76
59 changed files with 477 additions and 476 deletions

View File

@@ -218,7 +218,7 @@ paint_color_pipelines (TestState *state)
static void
paint_matrix_pipeline (CoglPipeline *pipeline)
{
CoglMatrix matrices[4];
graphene_matrix_t matrices[4];
float matrix_floats[16 * 4];
int uniform_location;
int i;

View File

@@ -54,7 +54,7 @@ paint (TestState *state)
};
CoglTexture *tex0, *tex1;
CoglPipeline *pipeline;
CoglMatrix matrix;
graphene_matrix_t matrix;
GError *error = NULL;
cogl_framebuffer_orthographic (test_fb,

View File

@@ -8,7 +8,7 @@ typedef CoglVertexP2C4 Vertex;
static void
setup_orthographic_modelview (void)
{
CoglMatrix matrix;
graphene_matrix_t matrix;
int fb_width = cogl_framebuffer_get_width (test_fb);
int fb_height = cogl_framebuffer_get_height (test_fb);

View File

@@ -20,9 +20,9 @@ on_paint (ClutterActor *actor,
void *state)
{
float saved_viewport[4];
CoglMatrix saved_projection;
CoglMatrix projection;
CoglMatrix modelview;
graphene_matrix_t saved_projection;
graphene_matrix_t projection;
graphene_matrix_t modelview;
guchar *data;
CoglHandle tex;
CoglHandle offscreen;

View File

@@ -431,7 +431,7 @@ test_modify_vertex_layer (TestState *state)
{
CoglPipeline *pipeline;
CoglSnippet *snippet;
CoglMatrix matrix;
graphene_matrix_t matrix;
/* Test modifying the vertex layer code */
pipeline = create_texture_pipeline (state);
@@ -460,7 +460,7 @@ test_replace_vertex_layer (TestState *state)
{
CoglPipeline *pipeline;
CoglSnippet *snippet;
CoglMatrix matrix;
graphene_matrix_t matrix;
/* Test replacing the vertex layer code */
pipeline = create_texture_pipeline (state);
@@ -490,8 +490,8 @@ test_vertex_transform_hook (TestState *state)
{
CoglPipeline *pipeline;
CoglSnippet *snippet;
CoglMatrix identity_matrix;
CoglMatrix matrix;
graphene_matrix_t identity_matrix;
graphene_matrix_t matrix;
float v[16];
int location;

View File

@@ -71,9 +71,9 @@ on_paint (ClutterActor *actor,
void *state)
{
float saved_viewport[4];
CoglMatrix saved_projection;
CoglMatrix projection;
CoglMatrix modelview;
graphene_matrix_t saved_projection;
graphene_matrix_t projection;
graphene_matrix_t modelview;
guchar *data;
CoglHandle tex;
CoglHandle offscreen;