2015-04-16 16:55:32 +00:00
|
|
|
#ifndef COMMON_2D_CANVAS_INTERFACE_H
|
|
|
|
#define COMMON_2D_CANVAS_INTERFACE_H
|
|
|
|
|
|
|
|
struct Common2dCanvasInterface
|
|
|
|
{
|
|
|
|
virtual ~Common2dCanvasInterface() {}
|
2018-09-23 21:17:31 +00:00
|
|
|
virtual int createCanvas(const char* canvasName, int width, int height, int xPos, int yPos) = 0;
|
|
|
|
virtual void destroyCanvas(int canvasId) = 0;
|
|
|
|
virtual void setPixel(int canvasId, int x, int y, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) = 0;
|
|
|
|
virtual void getPixel(int canvasId, int x, int y, unsigned char& red, unsigned char& green, unsigned char& blue, unsigned char& alpha) = 0;
|
2015-04-16 16:55:32 +00:00
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
virtual void refreshImageData(int canvasId) = 0;
|
2015-04-16 16:55:32 +00:00
|
|
|
};
|
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
#endif //COMMON_2D_CANVAS_INTERFACE_H
|