| 21 | virtual Color4 get(size_t x, size_t y) const = 0; |
| 22 | virtual void set(size_t x, size_t y, const Color4& c) = 0; |
| 23 | void set(size_t x, size_t y, const Color& c) { set(x,y,Color4(c.r,c.g,c.b,1.0f)); } |
| 24 | void convertToRGBA8(unsigned char *dest) |
| 25 | { |
| 26 | for (size_t y=0;y<height;y++) |