- void hflip()
- {
- flipx = !flipx;
- }
-
- bool get_flipx() const
- {
- return flipx;
- }
-
- const Surface& operator= (const Surface& other)
- {
- texture = other.texture;
- return *this;
- }
-
- 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()); }
-
+ void hflip();
+ bool get_flipx() const;
+
+ Texture *get_texture() const;
+ void *get_surface_data() const;
+ int get_x() const;
+ int get_y() const;
+ int get_width() const;
+ int get_height() const;
+ Vector get_position() const;