From a4ed17e0a1dec36a80ab09a8cffd3fd1e1a11d53 Mon Sep 17 00:00:00 2001 From: Elias Batek Date: Sun, 24 Dec 2023 00:16:53 +0100 Subject: [PATCH] Add minimal PixmapPresenter example --- pixmappresenter.d | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pixmappresenter.d b/pixmappresenter.d index 54b8d53..4e30740 100644 --- a/pixmappresenter.d +++ b/pixmappresenter.d @@ -72,6 +72,16 @@ } --- + ### Minimal example + + --- + void main() { + auto pmp = new PixmapPresenter("My Pixmap App", Size(640, 480)); + pmp.framebuffer.clear(rgb(0xFF, 0x00, 0x99)); + pmp.eventLoop(); + } + --- + ### Advanced example ---