forked from aseprite/aseprite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bg_options.h
34 lines (26 loc) · 878 Bytes
/
bg_options.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
// Aseprite Render Library
// Copyright (c) 2022 Igara Studio S.A.
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef RENDER_BG_OPTIONS_H_INCLUDED
#define RENDER_BG_OPTIONS_H_INCLUDED
#pragma once
#include "doc/color.h"
#include "doc/frame.h"
#include "gfx/size.h"
#include "render/bg_type.h"
namespace render {
struct BgOptions {
BgType type = BgType::TRANSPARENT;
bool zoom = false;
doc::PixelFormat colorPixelFormat = doc::PixelFormat::IMAGE_RGB;
doc::color_t color1 = 0;
doc::color_t color2 = 0;
gfx::Size stripeSize{16, 16};
BgOptions(BgType type = BgType::TRANSPARENT) : type(type) { }
static BgOptions MakeNone() { return BgOptions(BgType::NONE); }
static BgOptions MakeTransparent() { return BgOptions(BgType::TRANSPARENT); }
};
} // namespace render
#endif