From 7fe8bb0dba466798ca9efc448f772d37f360efe2 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 20 Mar 2021 09:31:02 +1100 Subject: Implement Stadium on all platforms except for Win32 GDI. --- src/Platform.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/Platform.h b/src/Platform.h index 4c7b6523d..7f61967c3 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -179,6 +179,14 @@ public: virtual void Init(SurfaceID sid, WindowID wid)=0; virtual void InitPixMap(int width, int height, Surface *surface_, WindowID wid)=0; + enum class Ends { + semiCircles = 0x0, + leftFlat = 0x1, + leftAngle = 0x2, + rightFlat = 0x10, + rightAngle = 0x20, + }; + virtual void Release() noexcept=0; virtual int Supports(int feature) noexcept=0; virtual bool Initialised()=0; @@ -206,6 +214,7 @@ public: virtual void DrawRGBAImage(PRectangle rc, int width, int height, const unsigned char *pixelsImage) = 0; virtual void Ellipse(PRectangle rc, ColourDesired fore, ColourDesired back)=0; virtual void Ellipse(PRectangle rc, FillStroke fillStroke)=0; + virtual void Stadium(PRectangle rc, FillStroke fillStroke, Ends ends)=0; virtual void Copy(PRectangle rc, Point from, Surface &surfaceSource)=0; virtual std::unique_ptr Layout(const IScreenLine *screenLine) = 0; -- cgit v1.2.3