From d31239eeeac4ea595b1d1e7063ab5d762809fb02 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 28 Mar 2026 20:33:03 +0200 Subject: feat!: Complete rewrite This new scheme will be much simpler --- FrameRender/PixelCallback.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 FrameRender/PixelCallback.h (limited to 'FrameRender/PixelCallback.h') diff --git a/FrameRender/PixelCallback.h b/FrameRender/PixelCallback.h new file mode 100644 index 0000000..b0aee1f --- /dev/null +++ b/FrameRender/PixelCallback.h @@ -0,0 +1,20 @@ +#ifndef _PIXEL_CALLBACK +#define _PIXEL_CALLBACK + +#include "../global.h" +#include "../RGBImage.h" + +struct PixelContext { + i32 x; + i32 y; + ARGB pixel; +}; + +typedef void (*PixelCallback_callback)(void* self, struct PixelContext* pc); + +typedef struct PixelCallback { + PixelCallback_callback callback; + void* callback_self; +} PixelCallback; + +#endif /* _PIXEL_CALLBACK */ -- cgit v1.2.3