1 | // Aseprite Render Library |
2 | // Copyright (c) 2019 Igara Studio S.A. |
3 | // Copyright (c) 2001-2016 David Capello |
4 | // |
5 | // This file is released under the terms of the MIT license. |
6 | // Read LICENSE.txt for more information. |
7 | |
8 | #ifndef RENDER_GET_SPRITE_PIXEL_H_INCLUDED |
9 | #define RENDER_GET_SPRITE_PIXEL_H_INCLUDED |
10 | #pragma once |
11 | |
12 | #include "doc/frame.h" |
13 | |
14 | namespace doc { |
15 | class Sprite; |
16 | } |
17 | |
18 | namespace render { |
19 | using namespace doc; |
20 | |
21 | class Projection; |
22 | |
23 | // Gets a pixel from the sprite in the specified position. If in the |
24 | // specified coordinates there're background this routine will |
25 | // return the 0 color (the mask-color). |
26 | color_t get_sprite_pixel(const Sprite* sprite, |
27 | const double x, |
28 | const double y, |
29 | const frame_t frame, |
30 | const Projection& proj, |
31 | const bool newBlend); |
32 | |
33 | } // namespace render |
34 | |
35 | #endif |
36 | |