- Unison::Video::TextureSection get_texture() const
- {
- return texture;
- }
-
- int get_x() const
- {
- return texture.clip_rect.pos.x;
- }
-
- int get_y() const
- {
- return texture.clip_rect.pos.y;
- }
-
- int get_width() const
- {
- return texture.clip_rect.size.x ? texture.clip_rect.size.x : texture.image.get_size().x;
- }
-
- int get_height() const
- {
- return texture.clip_rect.size.y ? texture.clip_rect.size.y : texture.image.get_size().y;
- }
-
- Vector get_position() const
- { return Vector(get_x(), get_y()); }
-
- /**
- * returns a vector containing width and height
- */
- Vector get_size() const
- { return Vector(get_width(), get_height()); }