OSDN Git Service

fixed save() and load_from_data() in tiledsurface.py for new pixel format
[mypaint-anime/master.git] / lib / surface.hpp
1 /* This file is part of MyPaint.
2  * Copyright (C) 2008 by Martin Renold <martinxyz@gmx.ch>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License.
6  * This program is distributed in the hope that it will be useful,
7  * but WITHOUT ANY WARRANTY. See the COPYING file for more details.
8  */
9
10 // surface interface required by brush.hpp
11 class Surface {
12   virtual bool draw_dab (float x, float y, 
13                          float radius, 
14                          float color_r, float color_g, float color_b,
15                          float opaque, float hardness = 0.5,
16                          float alpha_eraser = 1.0
17                          ) = 0;
18
19   virtual void get_color (float x, float y, 
20                           float radius, 
21                           float * color_r, float * color_g, float * color_b, float * color_a
22                           ) = 0;
23 };