summaryrefslogtreecommitdiff
path: root/FrameRender/PixelCallback.h
diff options
context:
space:
mode:
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 */