11#ifndef INCGUARD_MGL_DRAW_OPTION_2D_H_1606841963
12#define INCGUARD_MGL_DRAW_OPTION_2D_H_1606841963
88 [[nodiscard]]
constexpr const Vector2 &
GetScale() const noexcept {
return _scale; }
96 constexpr void SetRotate(
float degreeRotate)
noexcept { _degreeRotate = degreeRotate; }
104 [[nodiscard]]
constexpr float GetRotate() const noexcept {
return _degreeRotate; }
113 constexpr void SetFlip(
bool isHorizontalFlip,
bool isVerticalFlip)
noexcept
115 _isVerticalFlip = isVerticalFlip;
116 _isHorizontalFlip = isHorizontalFlip;
125 [[nodiscard]]
constexpr bool IsVerticalFlip() const noexcept {
return _isVerticalFlip; }
133 [[nodiscard]]
constexpr bool IsHorizontalFlip() const noexcept {
return _isHorizontalFlip; }
218 Vector2 _scale{1.0f, 1.0f};
219 float _degreeRotate{0.0f};
220 bool _isVerticalFlip{
false};
221 bool _isHorizontalFlip{
false};
223 Color _maskColor{1.0f, 1.0f, 1.0f, 1.0f};
2D描画オプション
Definition mgl_draw_option_2d.h:23
constexpr bool IsVerticalFlip() const noexcept
垂直方向のフリップ設定の取得
Definition mgl_draw_option_2d.h:125
constexpr DrawOption2D() noexcept=default
コンストラクタ
constexpr const Vector2 & GetOffset() const noexcept
オフセットの取得
Definition mgl_draw_option_2d.h:72
constexpr bool IsHorizontalFlip() const noexcept
水平方向のフリップ設定の取得
Definition mgl_draw_option_2d.h:133
constexpr void SetTransparency(float transparency) noexcept
透過値の設定
Definition mgl_draw_option_2d.h:173
constexpr BlendMode GetBlendMode() const noexcept
ブレンドーモードの取得
Definition mgl_draw_option_2d.h:213
constexpr void SetBlendMode(BlendMode blendMode) noexcept
ブレンドーモードの設定
Definition mgl_draw_option_2d.h:205
constexpr const Color & GetMaskColor() const noexcept
マスクカラーの取得
Definition mgl_draw_option_2d.h:165
constexpr float GetTransparency() const noexcept
透過値の取得
Definition mgl_draw_option_2d.h:181
constexpr const Alignment & GetAlignment() const noexcept
配置情報を取得
Definition mgl_draw_option_2d.h:56
constexpr void SetFlip(bool isHorizontalFlip, bool isVerticalFlip) noexcept
フリップの設定
Definition mgl_draw_option_2d.h:113
constexpr float GetRotate() const noexcept
回転角度の取得
Definition mgl_draw_option_2d.h:104
constexpr void SetOffset(const Vector2 &offset) noexcept
オフセットの設定
Definition mgl_draw_option_2d.h:64
constexpr void SetPivot(const MGL::Vector2 &pivot) noexcept
回転ピボットの設定
Definition mgl_draw_option_2d.h:141
constexpr void SetScale(const Vector2 &scale) noexcept
スケール値の設定
Definition mgl_draw_option_2d.h:80
constexpr SamplerType GetSamplerType() const noexcept
サンプラーの取得
Definition mgl_draw_option_2d.h:197
constexpr void SetSamplerType(SamplerType sampler) noexcept
サンプラーの設定
Definition mgl_draw_option_2d.h:189
constexpr const MGL::Vector2 & GetPivot() const noexcept
回転ピボットの取得
Definition mgl_draw_option_2d.h:149
constexpr void SetMaskColor(const Color &color) noexcept
マスクカラーの設定
Definition mgl_draw_option_2d.h:157
constexpr const Vector2 & GetScale() const noexcept
スケール値の取得
Definition mgl_draw_option_2d.h:88
constexpr void Reset() noexcept
初期化
Definition mgl_draw_option_2d.h:37
constexpr void SetRotate(float degreeRotate) noexcept
回転角度の設定
Definition mgl_draw_option_2d.h:96
constexpr void SetAlignment(const Alignment &alignment) noexcept
配置情報を設定
Definition mgl_draw_option_2d.h:48
constexpr auto kAlignmentTopLeft
左上
Definition mgl_alignment.h:164
BlendMode
ブレンドモード
Definition mgl_render_types.h:67
SamplerType
サンプラー
Definition mgl_render_types.h:59
配置情報
Definition mgl_alignment.h:21
色情報
Definition mgl_color.h:22
float alpha
アルファ値
Definition mgl_color.h:26
2Dベクトル
Definition mgl_vector2.h:23