forked from aseprite/aseprite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrasterize.h
41 lines (31 loc) · 786 Bytes
/
rasterize.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Aseprite Render Library
// Copyright (C) 2019 Igara Studio S.A.
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef RENDER_RASTERIZE_H_INCLUDED
#define RENDER_RASTERIZE_H_INCLUDED
#pragma once
namespace doc {
class Cel;
class Image;
}
namespace render {
void rasterize(
doc::Image* dst,
const doc::Cel* cel,
const int x,
const int y,
const bool clear);
void rasterize_with_cel_bounds(
doc::Image* dst,
const doc::Cel* cel);
void rasterize_with_sprite_bounds(
doc::Image* dst,
const doc::Cel* cel);
doc::Image* rasterize_with_cel_bounds(
const doc::Cel* cel);
doc::Image* rasterize_with_sprite_bounds(
const doc::Cel* cel);
} // namespace render
#endif