diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-01-07 00:22:57 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-01-07 00:22:57 +0100 |
commit | 030b78f7056b35ab53765212ee3ce94c5835a975 (patch) | |
tree | 793113088ee70cb126e7676ae43b9ad2ebe1a8a1 /src/graphics | |
parent | eb7bb70749079490da090a5ad01fd4546195378e (diff) |
Use const for arg
Diffstat (limited to 'src/graphics')
-rw-r--r-- | src/graphics/rectangle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics/rectangle.c b/src/graphics/rectangle.c index c6b2126..879e0dd 100644 --- a/src/graphics/rectangle.c +++ b/src/graphics/rectangle.c @@ -1,7 +1,7 @@ #include "../../include/mgl/graphics/rectangle.h" #include "../../include/mgl/mgl.h" -void mgl_rectangle_draw(mgl_context *context, mgl_rectangle *rect) { +void mgl_rectangle_draw(mgl_context *context, const mgl_rectangle *rect) { context->gl.glColor4ub(rect->color.r, rect->color.g, rect->color.b, rect->color.a); context->gl.glBegin(GL_QUADS); context->gl.glVertex3f(rect->position.x, rect->position.y, 0.0f); |