47 std::shared_ptr<wze::texture> _texture;
72 [[nodiscard]]
float x()
const final;
80 void set_x(
float x)
final;
88 [[nodiscard]]
float y()
const final;
96 void set_y(
float y)
final;
105 [[nodiscard]]
float z()
const final;
122 [[nodiscard]]
float angle()
const final;
130 void set_angle(
float angle)
final;
138 [[nodiscard]]
float width()
const final;
146 void set_width(
float width);
154 [[nodiscard]]
float height()
const final;
162 void set_height(
float height);
170 [[nodiscard]]
bool spatial()
const final;
178 void set_spatial(
bool spatial);
186 [[nodiscard]] std::shared_ptr<wze::texture>
const& texture()
const final;
194 void set_texture(std::shared_ptr<wze::texture>
const& texture)
final;
202 [[nodiscard]] uint8_t color_r()
const final;
210 void set_color_r(uint8_t color_r);
218 [[nodiscard]] uint8_t color_g()
const final;
226 void set_color_g(uint8_t color_g);
234 [[nodiscard]] uint8_t color_b()
const final;
242 void set_color_b(uint8_t color_b);
250 [[nodiscard]] uint8_t color_a()
const final;
258 void set_color_a(uint8_t color_a);
266 [[nodiscard]]
enum flip flip()
const final;
282 [[nodiscard]]
bool visible()
const final;
290 void set_visible(
bool visible);
298 [[nodiscard]] uint8_t priority()
const final;
306 void set_priority(uint8_t priority);
314 [[nodiscard]]
bool animated()
const final;
330 [[nodiscard]]
float x_offset()
const final;
338 void set_x_offset(
float x_offset);
346 [[nodiscard]]
float y_offset()
const final;
354 void set_y_offset(
float y_offset);
362 [[nodiscard]]
float angle_offset()
const final;
370 void set_angle_offset(
float angle_offset);
378 [[nodiscard]]
bool attach_x()
const final;
386 void set_attach_x(
bool attach_x);
394 [[nodiscard]]
bool attach_y()
const final;
402 void set_attach_y(
bool attach_y);
410 [[nodiscard]]
bool attach_angle()
const final;
418 void set_attach_angle(
bool attach_angle);
426 [[nodiscard]]
bool x_angle_lock()
const final;
434 void set_x_angle_lock(
bool x_angle_lock);
442 [[nodiscard]]
bool y_angle_lock()
const final;
450 void set_y_angle_lock(
bool y_angle_lock);
481 explicit sprite(
float x = 0,
float y = 0,
float z = 0,
float angle = 0,
482 float width = 0,
float height = 0,
bool spatial =
false,
483 std::shared_ptr<wze::texture>
const& texture = {},
484 uint8_t color_r = std::numeric_limits<uint8_t>::max(),
485 uint8_t color_g = std::numeric_limits<uint8_t>::max(),
486 uint8_t color_b = std::numeric_limits<uint8_t>::max(),
487 uint8_t color_a = std::numeric_limits<uint8_t>::max(),
488 enum flip flip = FLIP_NONE,
bool visible =
true,
489 uint8_t priority = std::numeric_limits<uint8_t>::max() / 2,
490 bool animated =
true,
float x_offset = 0,
491 float y_offset = 0,
float angle_offset = 0,
492 bool attach_x =
true,
bool attach_y =
true,
493 bool attach_angle =
true,
bool x_angle_lock =
true,
494 bool y_angle_lock =
true);