Mercurial > molko
diff libcore/core/texture.h @ 179:5d1b7d123401
core: constify texture drawing function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 27 Oct 2020 14:07:04 +0100 |
parents | eb0a7ab71023 |
children | c92957c3b82b |
line wrap: on
line diff
--- a/libcore/core/texture.h Tue Oct 27 14:06:34 2020 +0100 +++ b/libcore/core/texture.h Tue Oct 27 14:07:04 2020 +0100 @@ -74,7 +74,7 @@ * \return False in case of rendering error. */ bool -texture_draw(struct texture *tex, int x, int y); +texture_draw(const struct texture *tex, int x, int y); /** * Advanced texture drawing. @@ -93,7 +93,7 @@ * \return False in case of rendering error. */ bool -texture_scale(struct texture *tex, +texture_scale(const struct texture *tex, int src_x, int src_y, unsigned src_w,