| 1 | // Aseprite Render Library |
| 2 | // Copyright (C) 2019 Igara Studio S.A. |
| 3 | // |
| 4 | // This file is released under the terms of the MIT license. |
| 5 | // Read LICENSE.txt for more information. |
| 6 | |
| 7 | #ifndef RENDER_RASTERIZE_H_INCLUDED |
| 8 | #define RENDER_RASTERIZE_H_INCLUDED |
| 9 | #pragma once |
| 10 | |
| 11 | namespace doc { |
| 12 | class Cel; |
| 13 | class Image; |
| 14 | } |
| 15 | |
| 16 | namespace render { |
| 17 | |
| 18 | void rasterize( |
| 19 | doc::Image* dst, |
| 20 | const doc::Cel* cel, |
| 21 | const int x, |
| 22 | const int y, |
| 23 | const bool clear); |
| 24 | |
| 25 | void rasterize_with_cel_bounds( |
| 26 | doc::Image* dst, |
| 27 | const doc::Cel* cel); |
| 28 | |
| 29 | void rasterize_with_sprite_bounds( |
| 30 | doc::Image* dst, |
| 31 | const doc::Cel* cel); |
| 32 | |
| 33 | doc::Image* rasterize_with_cel_bounds( |
| 34 | const doc::Cel* cel); |
| 35 | |
| 36 | doc::Image* rasterize_with_sprite_bounds( |
| 37 | const doc::Cel* cel); |
| 38 | |
| 39 | } // namespace render |
| 40 | |
| 41 | #endif |
| 42 | |