summaryrefslogtreecommitdiff
path: root/FrameRender/PixelCallback.h
blob: b0aee1fa1d07e3d282071d72e3a487cfd97cfe4b (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.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 */