-
- float get_uv_left() const
- {
- return (float) (x + (flipx ? w : 0)) / texture->get_texture_width();
- }
-
- float get_uv_top() const
- {
- return (float) y / texture->get_texture_height();
- }
-
- float get_uv_right() const
- {
- return (float) (x + (flipx ? 0 : w)) / texture->get_texture_width();
- }
-
- float get_uv_bottom() const
- {
- return (float) (y + h) / texture->get_texture_height();
- }
-
- //void draw_part(float src_x, float src_y, float dst_x, float dst_y,
- // float width, float height, float alpha,
- // DrawingEffect effect) const;