remove optional by pointer texture_region parameters
This commit is contained in:
@ -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) */
|
||||
|
Reference in New Issue
Block a user