X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fvideo%2Fdrawing_context.hpp;h=46f6d27bb0934087597bd6c17ddc3a47fc2e3fcd;hb=38105c22495d9439b30221732dd5d7b89f328a0c;hp=c8f90127e596342665034b2c0e4dc38893bab941;hpb=fea3446f05e1e7673607b835c269d3e8d1929ab3;p=supertux.git diff --git a/src/video/drawing_context.hpp b/src/video/drawing_context.hpp index c8f90127e..46f6d27bb 100644 --- a/src/video/drawing_context.hpp +++ b/src/video/drawing_context.hpp @@ -69,7 +69,7 @@ public: /// Draws text on screen center (feed Vector.x with a 0). /// This is the same as draw_text() with a SCREEN_WIDTH/2 position and - /// alignment set to LEFT_ALLIGN + /// alignment set to LEFT_ALIGN void draw_center_text(const Font* font, const std::string& text, const Vector& position, int layer); /// Draws a color gradient onto the whole screen */ @@ -78,6 +78,9 @@ public: void draw_filled_rect(const Vector& topleft, const Vector& size, const Color& color, int layer); void draw_filled_rect(const Rect& rect, const Color& color, int layer); + void draw_filled_rect(const Rect& rect, const Color& color, float radius, int layer); + + void draw_inverse_ellipse(const Vector& pos, const Vector& size, const Color& color, int layer); /// Processes all pending drawing requests and flushes the list. void do_drawing();