![]() |
OpenSiv3D
v0.6.5
C++20 framework for creative coding
|
#include <TextureRegion.hpp>
Public Member Functions | |
SIV3D_NODISCARD_CXX20 | TextureRegion ()=default |
SIV3D_NODISCARD_CXX20 | TextureRegion (const Texture &_texture) |
SIV3D_NODISCARD_CXX20 | TextureRegion (const Texture &_texture, float l, float t, float r, float b, double sx, double sy) |
SIV3D_NODISCARD_CXX20 | TextureRegion (const Texture &_texture, float l, float t, float r, float b, const Vec2 &_size) |
SIV3D_NODISCARD_CXX20 | TextureRegion (const Texture &_texture, const FloatRect &_uvRect, double sx, double sy) |
SIV3D_NODISCARD_CXX20 | TextureRegion (const Texture &_texture, const FloatRect &_uvRect, const Vec2 &_size) |
RectF | region (double x, double y) const noexcept |
RectF | region (Vec2 pos=Vec2{ 0, 0 }) const noexcept |
RectF | regionAt (double x, double y) const noexcept |
RectF | regionAt (Vec2 pos) const noexcept |
TextureRegion | stretched (double x, double y) const |
TextureRegion | stretched (Vec2 _size) const |
RectF | draw (const ColorF &diffuse=Palette::White) const |
RectF | draw (const ColorF &color0, const ColorF &color1, const ColorF &color2, const ColorF &color3) const |
RectF | draw (Arg::top_< ColorF > topColor, Arg::bottom_< ColorF > bottomColor) const |
RectF | draw (Arg::left_< ColorF > leftColor, Arg::right_< ColorF > rightColor) const |
RectF | draw (double x, double y, const ColorF &diffuse=Palette::White) const |
RectF | draw (double x, double y, const ColorF &color0, const ColorF &color1, const ColorF &color2, const ColorF &color3) const |
RectF | draw (double x, double y, Arg::top_< ColorF > topColor, Arg::bottom_< ColorF > bottomColor) const |
RectF | draw (double x, double y, Arg::left_< ColorF > leftColor, Arg::right_< ColorF > rightColor) const |
RectF | draw (const Vec2 &pos, const ColorF &diffuse=Palette::White) const |
RectF | draw (const Vec2 &pos, const ColorF &color0, const ColorF &color1, const ColorF &color2, const ColorF &color3) const |
RectF | draw (const Vec2 &pos, Arg::top_< ColorF > topColor, Arg::bottom_< ColorF > bottomColor) const |
RectF | draw (const Vec2 &pos, Arg::left_< ColorF > leftColor, Arg::right_< ColorF > rightColor) const |
RectF | draw (Arg::topLeft_< Vec2 > topLeft, const ColorF &diffuse=Palette::White) const |
RectF | draw (Arg::topRight_< Vec2 > topRight, const ColorF &diffuse=Palette::White) const |
RectF | draw (Arg::bottomLeft_< Vec2 > bottomLeft, const ColorF &diffuse=Palette::White) const |
RectF | draw (Arg::bottomRight_< Vec2 > bottomRight, const ColorF &diffuse=Palette::White) const |
RectF | draw (Arg::topCenter_< Vec2 > topCenter, const ColorF &diffuse=Palette::White) const |
RectF | draw (Arg::bottomCenter_< Vec2 > bottomCenter, const ColorF &diffuse=Palette::White) const |
RectF | draw (Arg::leftCenter_< Vec2 > leftCenter, const ColorF &diffuse=Palette::White) const |
RectF | draw (Arg::rightCenter_< Vec2 >rightCenter, const ColorF &diffuse=Palette::White) const |
RectF | draw (Arg::center_< Vec2 > center, const ColorF &diffuse=Palette::White) const |
RectF | drawAt (double x, double y, const ColorF &diffuse=Palette::White) const |
RectF | drawAt (double x, double y, const ColorF &color0, const ColorF &color1, const ColorF &color2, const ColorF &color3) const |
RectF | drawAt (const Vec2 &pos, const ColorF &diffuse=Palette::White) const |
中心位置を指定してテクスチャの一部分を描画します。 More... | |
RectF | drawAt (const Vec2 &pos, const ColorF &color0, const ColorF &color1, const ColorF &color2, const ColorF &color3) const |
RectF | drawClipped (double x, double y, const RectF &clipRect, const ColorF &diffuse=Palette::White) const |
RectF | drawClipped (const Vec2 &pos, const RectF &clipRect, const ColorF &diffuse=Palette::White) const |
RectF | drawAtClipped (double x, double y, const RectF &clipRect, const ColorF &diffuse=Palette::White) const |
RectF | drawAtClipped (const Vec2 &pos, const RectF &clipRect, const ColorF &diffuse=Palette::White) const |
TextureRegion | mirrored () const |
TextureRegion | mirrored (bool doMirror) const |
TextureRegion | flipped () const |
TextureRegion | flipped (bool doFlip) const |
TextureRegion | scaled (double s) const |
TextureRegion | scaled (double sx, double sy) const |
TextureRegion | scaled (Vec2 s) const |
TextureRegion | resized (double _size) const |
TextureRegion | resized (double width, double height) const |
TextureRegion | resized (Vec2 _size) const |
TextureRegion | fitted (double width, double height, AllowScaleUp allowScaleUp=AllowScaleUp::Yes) const |
TextureRegion | fitted (const Vec2 &_size, AllowScaleUp allowScaleUp=AllowScaleUp::Yes) const |
TexturedQuad | rotated (double angle) const |
TexturedQuad | rotatedAt (double x, double y, double angle) const |
TexturedQuad | rotatedAt (const Vec2 &pos, double angle) const |
TexturedRoundRect | rounded (double r) const |
Public Attributes | |
Texture | texture |
FloatRect | uvRect = FloatRect{ 0.0f, 0.0f, 0.0f, 0.0f } |
Float2 | size = Float2{ 0.0f, 0.0f } |
|
default |
SIV3D_NODISCARD_CXX20 s3d::TextureRegion::TextureRegion | ( | const Texture & | _texture | ) |
SIV3D_NODISCARD_CXX20 s3d::TextureRegion::TextureRegion | ( | const Texture & | _texture, |
float | l, | ||
float | t, | ||
float | r, | ||
float | b, | ||
double | sx, | ||
double | sy | ||
) |
SIV3D_NODISCARD_CXX20 s3d::TextureRegion::TextureRegion | ( | const Texture & | _texture, |
float | l, | ||
float | t, | ||
float | r, | ||
float | b, | ||
const Vec2 & | _size | ||
) |
SIV3D_NODISCARD_CXX20 s3d::TextureRegion::TextureRegion | ( | const Texture & | _texture, |
const FloatRect & | _uvRect, | ||
double | sx, | ||
double | sy | ||
) |
SIV3D_NODISCARD_CXX20 s3d::TextureRegion::TextureRegion | ( | const Texture & | _texture, |
const FloatRect & | _uvRect, | ||
const Vec2 & | _size | ||
) |
RectF s3d::TextureRegion::draw | ( | Arg::bottomCenter_< Vec2 > | bottomCenter, |
const ColorF & | diffuse = Palette::White |
||
) | const |
RectF s3d::TextureRegion::draw | ( | Arg::bottomLeft_< Vec2 > | bottomLeft, |
const ColorF & | diffuse = Palette::White |
||
) | const |
RectF s3d::TextureRegion::draw | ( | Arg::bottomRight_< Vec2 > | bottomRight, |
const ColorF & | diffuse = Palette::White |
||
) | const |
RectF s3d::TextureRegion::draw | ( | Arg::center_< Vec2 > | center, |
const ColorF & | diffuse = Palette::White |
||
) | const |
RectF s3d::TextureRegion::draw | ( | Arg::left_< ColorF > | leftColor, |
Arg::right_< ColorF > | rightColor | ||
) | const |
RectF s3d::TextureRegion::draw | ( | Arg::leftCenter_< Vec2 > | leftCenter, |
const ColorF & | diffuse = Palette::White |
||
) | const |
RectF s3d::TextureRegion::draw | ( | Arg::rightCenter_< Vec2 > | rightCenter, |
const ColorF & | diffuse = Palette::White |
||
) | const |
RectF s3d::TextureRegion::draw | ( | Arg::top_< ColorF > | topColor, |
Arg::bottom_< ColorF > | bottomColor | ||
) | const |
RectF s3d::TextureRegion::draw | ( | Arg::topCenter_< Vec2 > | topCenter, |
const ColorF & | diffuse = Palette::White |
||
) | const |
RectF s3d::TextureRegion::draw | ( | Arg::topLeft_< Vec2 > | topLeft, |
const ColorF & | diffuse = Palette::White |
||
) | const |
RectF s3d::TextureRegion::draw | ( | Arg::topRight_< Vec2 > | topRight, |
const ColorF & | diffuse = Palette::White |
||
) | const |
RectF s3d::TextureRegion::draw | ( | const ColorF & | color0, |
const ColorF & | color1, | ||
const ColorF & | color2, | ||
const ColorF & | color3 | ||
) | const |
RectF s3d::TextureRegion::draw | ( | const Vec2 & | pos, |
Arg::left_< ColorF > | leftColor, | ||
Arg::right_< ColorF > | rightColor | ||
) | const |
RectF s3d::TextureRegion::draw | ( | const Vec2 & | pos, |
Arg::top_< ColorF > | topColor, | ||
Arg::bottom_< ColorF > | bottomColor | ||
) | const |
RectF s3d::TextureRegion::draw | ( | const Vec2 & | pos, |
const ColorF & | color0, | ||
const ColorF & | color1, | ||
const ColorF & | color2, | ||
const ColorF & | color3 | ||
) | const |
RectF s3d::TextureRegion::draw | ( | double | x, |
double | y, | ||
Arg::left_< ColorF > | leftColor, | ||
Arg::right_< ColorF > | rightColor | ||
) | const |
RectF s3d::TextureRegion::draw | ( | double | x, |
double | y, | ||
Arg::top_< ColorF > | topColor, | ||
Arg::bottom_< ColorF > | bottomColor | ||
) | const |
RectF s3d::TextureRegion::draw | ( | double | x, |
double | y, | ||
const ColorF & | color0, | ||
const ColorF & | color1, | ||
const ColorF & | color2, | ||
const ColorF & | color3 | ||
) | const |
RectF s3d::TextureRegion::draw | ( | double | x, |
double | y, | ||
const ColorF & | diffuse = Palette::White |
||
) | const |
RectF s3d::TextureRegion::drawAt | ( | const Vec2 & | pos, |
const ColorF & | color0, | ||
const ColorF & | color1, | ||
const ColorF & | color2, | ||
const ColorF & | color3 | ||
) | const |
RectF s3d::TextureRegion::drawAt | ( | const Vec2 & | pos, |
const ColorF & | diffuse = Palette::White |
||
) | const |
中心位置を指定してテクスチャの一部分を描画します。
pos | 描画する中心の座標 |
diffuse | 描画時に乗算する色 |
RectF s3d::TextureRegion::drawAt | ( | double | x, |
double | y, | ||
const ColorF & | color0, | ||
const ColorF & | color1, | ||
const ColorF & | color2, | ||
const ColorF & | color3 | ||
) | const |
RectF s3d::TextureRegion::drawAt | ( | double | x, |
double | y, | ||
const ColorF & | diffuse = Palette::White |
||
) | const |
RectF s3d::TextureRegion::drawAtClipped | ( | const Vec2 & | pos, |
const RectF & | clipRect, | ||
const ColorF & | diffuse = Palette::White |
||
) | const |
RectF s3d::TextureRegion::drawAtClipped | ( | double | x, |
double | y, | ||
const RectF & | clipRect, | ||
const ColorF & | diffuse = Palette::White |
||
) | const |
RectF s3d::TextureRegion::drawClipped | ( | const Vec2 & | pos, |
const RectF & | clipRect, | ||
const ColorF & | diffuse = Palette::White |
||
) | const |
RectF s3d::TextureRegion::drawClipped | ( | double | x, |
double | y, | ||
const RectF & | clipRect, | ||
const ColorF & | diffuse = Palette::White |
||
) | const |
TextureRegion s3d::TextureRegion::fitted | ( | const Vec2 & | _size, |
AllowScaleUp | allowScaleUp = AllowScaleUp::Yes |
||
) | const |
TextureRegion s3d::TextureRegion::fitted | ( | double | width, |
double | height, | ||
AllowScaleUp | allowScaleUp = AllowScaleUp::Yes |
||
) | const |
TextureRegion s3d::TextureRegion::flipped | ( | ) | const |
TextureRegion s3d::TextureRegion::flipped | ( | bool | doFlip | ) | const |
TextureRegion s3d::TextureRegion::mirrored | ( | ) | const |
TextureRegion s3d::TextureRegion::mirrored | ( | bool | doMirror | ) | const |
|
noexcept |
|
noexcept |
TextureRegion s3d::TextureRegion::resized | ( | double | _size | ) | const |
TextureRegion s3d::TextureRegion::resized | ( | double | width, |
double | height | ||
) | const |
TextureRegion s3d::TextureRegion::resized | ( | Vec2 | _size | ) | const |
TexturedQuad s3d::TextureRegion::rotated | ( | double | angle | ) | const |
TexturedQuad s3d::TextureRegion::rotatedAt | ( | const Vec2 & | pos, |
double | angle | ||
) | const |
TexturedQuad s3d::TextureRegion::rotatedAt | ( | double | x, |
double | y, | ||
double | angle | ||
) | const |
TexturedRoundRect s3d::TextureRegion::rounded | ( | double | r | ) | const |
TextureRegion s3d::TextureRegion::scaled | ( | double | s | ) | const |
TextureRegion s3d::TextureRegion::scaled | ( | double | sx, |
double | sy | ||
) | const |
TextureRegion s3d::TextureRegion::scaled | ( | Vec2 | s | ) | const |
TextureRegion s3d::TextureRegion::stretched | ( | double | x, |
double | y | ||
) | const |
TextureRegion s3d::TextureRegion::stretched | ( | Vec2 | _size | ) | const |
Texture s3d::TextureRegion::texture |