From 122e60da837c15ca99d46c18ed41273057afe0fd Mon Sep 17 00:00:00 2001 From: Elias Batek Date: Sun, 2 Feb 2025 01:53:05 +0100 Subject: [PATCH] Add commented out outline of `SoftwarePixmapRenderer` --- pixmappresenter.d | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/pixmappresenter.d b/pixmappresenter.d index c8bab90..9cbfecd 100644 --- a/pixmappresenter.d +++ b/pixmappresenter.d @@ -838,6 +838,40 @@ final class OpenGl1PixmapRenderer : PixmapRenderer { } } +/+ +/++ + Purely software renderer + +/ +final class SoftwarePixmapRenderer : PixmapRenderer { + + private { + PresenterObjectsContainer* _poc; + } + + public WantsOpenGl wantsOpenGl() @safe pure nothrow @nogc { + return WantsOpenGl(0); + } + + public void setup(PresenterObjectsContainer* container) { + } + + public void reconfigure() { + } + + /++ + Schedules a redraw + +/ + public void redrawSchedule() { + } + + /++ + Triggers a redraw + +/ + public void redrawNow() { + } +} ++/ + /// struct LoopCtrl { int interval; /// in milliseconds