summaryrefslogtreecommitdiff
path: root/FrameRender/PixelCallback.h
blob: a1ce740b5f0394d209654c71dc3c149426569d62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _PIXEL_CALLBACK
#define _PIXEL_CALLBACK

#include "../global.h"
#include "../RGBImage/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 */