From df2e6771c5bf6f09e62f9d6b86d83a2631ea365f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 22 Oct 2021 07:03:45 +0200 Subject: Use const where possible in function params --- tests/main.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/main.c b/tests/main.c index 0e6e199..0001288 100644 --- a/tests/main.c +++ b/tests/main.c @@ -28,7 +28,6 @@ static void draw(mgl_window *window, void *userdata) { }; mgl_rectangle_draw(context, &rect); - /*mgl_shader_program_set_uniform_texture2d(u->shader_program, "texture", u->texture);*/ mgl_shader_program_set_uniform_vec2f(u->shader_program, "resolution", (mgl_vec2f){ window->size.x, window->size.y }); mgl_sprite sprite; @@ -87,23 +86,23 @@ int main(int argc, char **argv) { mgl_vertex vertices[4] = { (mgl_vertex){ .position = {0.0f, 0.0f}, - .color = {255, 0, 0, 100}, - .texcoords = {0.0f, 0.0f} + .texcoords = {0.0f, 0.0f}, + .color = {255, 0, 0, 100} }, (mgl_vertex){ .position = {font.texture.width, 0.0f}, + .texcoords = {1.0f, 0.0f}, .color = {0, 255, 0, 100}, - .texcoords = {1.0f, 0.0f} }, (mgl_vertex){ .position = {font.texture.width, font.texture.height}, + .texcoords = {1.0f, 1.0f}, .color = {0, 0, 255, 100}, - .texcoords = {1.0f, 1.0f} }, (mgl_vertex){ .position = {0.0f, font.texture.height}, - .color = {255, 0, 255, 100}, - .texcoords = {0.0f, 1.0f} + .texcoords = {0.0f, 1.0f}, + .color = {255, 0, 255, 100} } }; -- cgit v1.2.3