Files
Renderive/Core/render/Blend2D_Convert.h
T
2026-08-01 20:09:45 +08:00

25 lines
599 B
C++

#pragma once
#include "../base/Color.h"
#include "../base/Geometry.h"
#include "../base/Style.h"
#include "../base/Text.h"
struct BLRgba;
struct BLRect;
struct BLPoint;
namespace renderive {
struct Convert {
static BLRgba to_bl(const Color& color);
static BLRgba to_bl_premultiplied(const Color& color);
static BLPoint to_bl(const PointF& point);
static BLRect to_bl(const RectF& rect);
static Color from_bl(const BLRgba& rgba);
static std::uint32_t blend2d_line_cap(Line_Cap cap);
static std::uint32_t blend2d_line_join(Line_Join join);
};
} // namespace renderive