comparison 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
comparison
equal deleted inserted replaced
178:49639211d63b 179:5d1b7d123401
72 * \param x the X coordinate 72 * \param x the X coordinate
73 * \param y the Y coordinate 73 * \param y the Y coordinate
74 * \return False in case of rendering error. 74 * \return False in case of rendering error.
75 */ 75 */
76 bool 76 bool
77 texture_draw(struct texture *tex, int x, int y); 77 texture_draw(const struct texture *tex, int x, int y);
78 78
79 /** 79 /**
80 * Advanced texture drawing. 80 * Advanced texture drawing.
81 * 81 *
82 * \pre tex != NULL 82 * \pre tex != NULL
91 * \param dst_h the destination rectangle height 91 * \param dst_h the destination rectangle height
92 * \param angle the angle 92 * \param angle the angle
93 * \return False in case of rendering error. 93 * \return False in case of rendering error.
94 */ 94 */
95 bool 95 bool
96 texture_scale(struct texture *tex, 96 texture_scale(const struct texture *tex,
97 int src_x, 97 int src_x,
98 int src_y, 98 int src_y,
99 unsigned src_w, 99 unsigned src_w,
100 unsigned src_h, 100 unsigned src_h,
101 int dst_x, 101 int dst_x,