1// Aseprite Render Library
2// Copyright (c) 2022 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_BG_OPTIONS_H_INCLUDED
8#define RENDER_BG_OPTIONS_H_INCLUDED
9#pragma once
10
11#include "doc/color.h"
12#include "doc/frame.h"
13#include "gfx/size.h"
14#include "render/bg_type.h"
15
16namespace render {
17
18 struct BgOptions {
19 BgType type = BgType::TRANSPARENT;
20 bool zoom = false;
21 doc::color_t color1 = 0;
22 doc::color_t color2 = 0;
23 gfx::Size stripeSize{16, 16};
24
25 BgOptions(BgType type = BgType::TRANSPARENT) : type(type) { }
26
27 static BgOptions MakeNone() { return BgOptions(BgType::NONE); }
28 static BgOptions MakeTransparent() { return BgOptions(BgType::TRANSPARENT); }
29 };
30
31} // namespace render
32
33#endif
34