remove optional by pointer texture_region parameters

This commit is contained in:
veclavtalica
2025-02-20 16:19:03 +03:00
parent 991196f7c8
commit b67bc92857
5 changed files with 23 additions and 15 deletions

View File

@ -10,7 +10,7 @@
/* TODO: combine flip_x and flip_y into a flip_mask with enum */
TWN_API void draw_sprite(char const *texture,
Rect rect,
Rect const *texture_region, /* optional, default: NULL */
Rect texture_region, /* optional, default: all 0 */
Color color, /* optional, default: all 255 */
float rotation, /* optional, default: 0 */
bool flip_x, /* optional, default: false */
@ -76,8 +76,8 @@ TWN_API void draw_quad(char const *texture,
TWN_API void draw_billboard(char const *texture,
Vec3 position,
Vec2 size,
Rect const *texture_region, /* optional, default: NULL */
Color color, /* optional, default: all 255 */
Rect texture_region, /* optional, default: NULL */
Color color, /* optional, default: all 0 */
bool cylindrical); /* optional, default: false */
TWN_API void draw_camera_2d(Vec2 position, /* optional, default: (0, 0) */