summaryrefslogtreecommitdiff
path: root/FrameRender/PixelCallback.h
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2026-03-28 20:33:03 +0200
committerSyndamia <kamen@syndamia.com>2026-03-28 20:33:03 +0200
commitd31239eeeac4ea595b1d1e7063ab5d762809fb02 (patch)
treeaa0d5f426a2dc439ad863b9e3ec017c5776f528e /FrameRender/PixelCallback.h
parent56099072165578b505a6c81e187cf392b9bd5a2e (diff)
downloadppm_graphics-d31239eeeac4ea595b1d1e7063ab5d762809fb02.tar
ppm_graphics-d31239eeeac4ea595b1d1e7063ab5d762809fb02.tar.gz
ppm_graphics-d31239eeeac4ea595b1d1e7063ab5d762809fb02.zip
feat!: Complete rewrite
This new scheme will be much simpler
Diffstat (limited to 'FrameRender/PixelCallback.h')
-rw-r--r--FrameRender/PixelCallback.h20
1 files changed, 20 insertions, 0 deletions
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 */