X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fvideo%2Fsurface.hpp;h=d7021815d20642e2116e5811d42c6152f33df339;hb=2f7bf5676ef8b6b9ff3cf28468efe536888808b5;hp=650f931694388e7bc09cbb323ba6a94c39070b25;hpb=a113d3bd1feddd510e3b2852b0d42522735eee40;p=supertux.git diff --git a/src/video/surface.hpp b/src/video/surface.hpp index 650f93169..d7021815d 100644 --- a/src/video/surface.hpp +++ b/src/video/surface.hpp @@ -21,6 +21,7 @@ #define __SURFACE_HPP__ #include +#include "math/vector.hpp" class Color; class Blend; @@ -81,6 +82,13 @@ public: { return height; } + + /** + * returns a vector containing width and height + */ + Vector get_size() const + { return Vector(get_width(), get_height()); } + }; #endif