OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::MSRenderTexture Class Reference

マルチサンプル(アンチエイリアス付き)レンダーテクスチャ More...

#include <MSRenderTexture.hpp>

Inherits s3d::RenderTexture.

Public Member Functions

SIV3D_NODISCARD_CXX20 MSRenderTexture ()
 
SIV3D_NODISCARD_CXX20 MSRenderTexture (uint32 width, uint32 height, const TextureFormat &format=TextureFormat::R8G8B8A8_Unorm, HasDepth hasDepth=HasDepth::No)
 
SIV3D_NODISCARD_CXX20 MSRenderTexture (uint32 width, uint32 height, HasDepth hasDepth)
 
SIV3D_NODISCARD_CXX20 MSRenderTexture (const Size &size, const TextureFormat &format=TextureFormat::R8G8B8A8_Unorm, HasDepth hasDepth=HasDepth::No)
 
SIV3D_NODISCARD_CXX20 MSRenderTexture (const Size &size, HasDepth hasDepth)
 
SIV3D_NODISCARD_CXX20 MSRenderTexture (uint32 width, uint32 height, const ColorF &color, const TextureFormat &format=TextureFormat::R8G8B8A8_Unorm, HasDepth hasDepth=HasDepth::No)
 
SIV3D_NODISCARD_CXX20 MSRenderTexture (const Size &size, const ColorF &color, const TextureFormat &format=TextureFormat::R8G8B8A8_Unorm, HasDepth hasDepth=HasDepth::No)
 
void resolve () const
 レンダリングされたマルチサンプルテクスチャを通常のテクスチャに resolve し、描画可能な状態にします。 More...
 
const MSRenderTextureclear (const ColorF &color) const
 テクスチャを指定した色で塗りつぶします。デプスを持つ場合、デプスもクリアします。 More...
 
void readAsImage (Image &image) const
 
void swap (MSRenderTexture &other) noexcept
 
- Public Member Functions inherited from s3d::RenderTexture
SIV3D_NODISCARD_CXX20 RenderTexture ()
 
SIV3D_NODISCARD_CXX20 RenderTexture (uint32 width, uint32 height, const ColorF &color=ColorF{ 0.0, 1.0 }, const TextureFormat &format=TextureFormat::R8G8B8A8_Unorm, HasDepth hasDpeth=HasDepth::No)
 
SIV3D_NODISCARD_CXX20 RenderTexture (const Size &size, const ColorF &color=ColorF{ 0.0, 1.0 }, const TextureFormat &format=TextureFormat::R8G8B8A8_Unorm, HasDepth hasDpeth=HasDepth::No)
 
SIV3D_NODISCARD_CXX20 RenderTexture (uint32 width, uint32 height, const TextureFormat &format, HasDepth hasDpeth=HasDepth::No)
 
SIV3D_NODISCARD_CXX20 RenderTexture (uint32 width, uint32 height, HasDepth hasDpeth)
 
SIV3D_NODISCARD_CXX20 RenderTexture (const Size &size, const TextureFormat &format, HasDepth hasDpeth=HasDepth::No)
 
SIV3D_NODISCARD_CXX20 RenderTexture (const Size &size, HasDepth hasDpeth)
 
SIV3D_NODISCARD_CXX20 RenderTexture (const Image &image, HasDepth hasDpeth=HasDepth::No)
 
SIV3D_NODISCARD_CXX20 RenderTexture (const Grid< float > &image, HasDepth hasDpeth=HasDepth::No)
 
SIV3D_NODISCARD_CXX20 RenderTexture (const Grid< Float2 > &image, HasDepth hasDpeth=HasDepth::No)
 
SIV3D_NODISCARD_CXX20 RenderTexture (const Grid< Float4 > &image, HasDepth hasDpeth=HasDepth::No)
 
virtual ~RenderTexture ()
 
const RenderTextureclear (const ColorF &color) const
 テクスチャを指定した色で塗りつぶします。デプスを持つ場合、デプスもクリアします。 More...
 
void readAsImage (Image &image) const
 
void read (Grid< float > &image) const
 
void read (Grid< Float2 > &image) const
 
void read (Grid< Float4 > &image) const
 
void swap (RenderTexture &other) noexcept
 
- Public Member Functions inherited from s3d::Texture
SIV3D_NODISCARD_CXX20 Texture ()
 
SIV3D_NODISCARD_CXX20 Texture (const Image &image, TextureDesc desc=TextureDesc::Unmipped)
 
SIV3D_NODISCARD_CXX20 Texture (const Image &image, const Array< Image > &mipmaps, TextureDesc desc=TextureDesc::Mipped)
 
SIV3D_NODISCARD_CXX20 Texture (FilePathView path, TextureDesc desc=TextureDesc::Unmipped)
 画像ファイルからテクスチャを作成します。 More...
 
SIV3D_NODISCARD_CXX20 Texture (IReader &&reader, TextureDesc desc=TextureDesc::Unmipped)
 
SIV3D_NODISCARD_CXX20 Texture (FilePathView rgb, FilePathView alpha, TextureDesc desc=TextureDesc::Unmipped)
 
SIV3D_NODISCARD_CXX20 Texture (const Color &rgb, FilePathView alpha, TextureDesc desc=TextureDesc::Unmipped)
 
SIV3D_NODISCARD_CXX20 Texture (const Emoji &emoji, TextureDesc desc=TextureDesc::Mipped)
 絵文字からテクスチャを作成します。 More...
 
SIV3D_NODISCARD_CXX20 Texture (const Icon &icon, int32 size, TextureDesc desc=TextureDesc::Mipped)
 アイコンからテクスチャを作成します。 More...
 
virtual ~Texture ()
 
int32 width () const
 テクスチャの幅(ピクセル)を返します。 More...
 
int32 height () const
 テクスチャの高さ(ピクセル)を返します。 More...
 
Size size () const
 テクスチャの幅と高さ(ピクセル)を返します。 More...
 
template<class Type = double>
Type horizontalAspectRatio () const noexcept
 
TextureDesc getDesc () const
 テクスチャの設定を返します。 More...
 
TextureFormat getFormat () const
 テクスチャのフォーマットを返します。 More...
 
bool isMipped () const
 ミップマッピングが有効化されているかを返します。 More...
 
bool srgbSampling () const
 
bool isSDF () const
 
bool hasDepth () const
 デプスバッファを持っているかを返します。 More...
 
Rect region (int32 x, int32 y) const
 
Rect region (Point pos=Point{ 0, 0 }) const
 
RectF region (double x, double y) const
 
RectF region (Vec2 pos) const
 
RectF regionAt (double x, double y) const
 
RectF regionAt (Vec2 pos) 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
 左上位置を指定してテクスチャを描画します。 More...
 
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
 
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 operator() (double x, double y, double w, double h) const
 
TextureRegion operator() (const Vec2 &xy, double w, double h) const
 
TextureRegion operator() (double x, double y, double size) const
 
TextureRegion operator() (double x, double y, const Vec2 &size) const
 
TextureRegion operator() (const Vec2 &xy, const Vec2 &size) const
 
TextureRegion operator() (const RectF &rect) const
 
TextureRegion uv (double u, double v, double w, double h) const
 
TextureRegion uv (const RectF &rect) 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 xs, double ys) const
 
TextureRegion scaled (Vec2 s) const
 
TextureRegion resized (double size) const
 長辺が指定したサイズになるようリサイズした TextureRegion を返します。 More...
 
TextureRegion resized (double width, double height) const
 
TextureRegion resized (Vec2 size) const
 
TextureRegion repeated (double xRepeat, double yRepeat) const
 
TextureRegion repeated (Vec2 _repeat) const
 
TextureRegion mapped (double width, double height) const
 
TextureRegion mapped (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
 
TexturedRoundRect rounded (double x, double y, double w, double h, double r) const
 
void swap (Texture &other) noexcept
 
- Public Member Functions inherited from s3d::AssetHandle< Texture >
SIV3D_NODISCARD_CXX20 AssetHandle ()
 
SIV3D_NODISCARD_CXX20 AssetHandle (std::shared_ptr< AssetIDWrapperType > &&id)
 
IDType id () const noexcept
 アセットの内部管理 ID を返します。 More...
 
bool isEmpty () const noexcept
 アセットが空であるかを返します。 More...
 
 operator bool () const noexcept
 アセットが空でないかを返します。 More...
 
bool operator== (const AssetHandle &other) const noexcept
 2 つのアセットが同じオブジェクトであるかを返します。 More...
 
bool operator!= (const AssetHandle &other) const noexcept
 2 つのアセットが異なるオブジェクトであるかを返します。 More...
 
void release ()
 このハンドルが管理するアセットを解放します。 More...
 

Additional Inherited Members

- Public Types inherited from s3d::AssetHandle< Texture >
using AssetIDWrapperType = AssetIDWrapper< AssetHandle >
 アセット ID ラッパー型 More...
 
using IDType = typename AssetIDWrapperType::IDType
 アセット ID 型 More...
 
- Protected Member Functions inherited from s3d::RenderTexture
SIV3D_NODISCARD_CXX20 RenderTexture (MSRender, const Size &size, const TextureFormat &format, HasDepth hasDepth)
 
- Protected Member Functions inherited from s3d::Texture
SIV3D_NODISCARD_CXX20 Texture (Dynamic, const Size &size, const void *pData, uint32 stride, const TextureFormat &format, TextureDesc desc)
 
SIV3D_NODISCARD_CXX20 Texture (Dynamic, const Size &size, const ColorF &color, const TextureFormat &format, TextureDesc desc)
 
SIV3D_NODISCARD_CXX20 Texture (Render, const Size &size, const TextureFormat &format, HasDepth hasDepth)
 
SIV3D_NODISCARD_CXX20 Texture (Render, const Image &image, HasDepth hasDepth)
 
SIV3D_NODISCARD_CXX20 Texture (Render, const Grid< float > &image, HasDepth hasDepth)
 
SIV3D_NODISCARD_CXX20 Texture (Render, const Grid< Float2 > &image, HasDepth hasDepth)
 
SIV3D_NODISCARD_CXX20 Texture (Render, const Grid< Float4 > &image, HasDepth hasDepth)
 
SIV3D_NODISCARD_CXX20 Texture (MSRender, const Size &size, const TextureFormat &format, HasDepth hasDepth)
 
- Protected Attributes inherited from s3d::AssetHandle< Texture >
std::shared_ptr< AssetIDWrapperTypem_handle
 

Detailed Description

マルチサンプル(アンチエイリアス付き)レンダーテクスチャ

Constructor & Destructor Documentation

◆ MSRenderTexture() [1/7]

SIV3D_NODISCARD_CXX20 s3d::MSRenderTexture::MSRenderTexture ( )

◆ MSRenderTexture() [2/7]

SIV3D_NODISCARD_CXX20 s3d::MSRenderTexture::MSRenderTexture ( uint32  width,
uint32  height,
const TextureFormat format = TextureFormat::R8G8B8A8_Unorm,
HasDepth  hasDepth = HasDepth::No 
)

◆ MSRenderTexture() [3/7]

SIV3D_NODISCARD_CXX20 s3d::MSRenderTexture::MSRenderTexture ( uint32  width,
uint32  height,
HasDepth  hasDepth 
)

◆ MSRenderTexture() [4/7]

SIV3D_NODISCARD_CXX20 s3d::MSRenderTexture::MSRenderTexture ( const Size size,
const TextureFormat format = TextureFormat::R8G8B8A8_Unorm,
HasDepth  hasDepth = HasDepth::No 
)
explicit

◆ MSRenderTexture() [5/7]

SIV3D_NODISCARD_CXX20 s3d::MSRenderTexture::MSRenderTexture ( const Size size,
HasDepth  hasDepth 
)
explicit

◆ MSRenderTexture() [6/7]

SIV3D_NODISCARD_CXX20 s3d::MSRenderTexture::MSRenderTexture ( uint32  width,
uint32  height,
const ColorF color,
const TextureFormat format = TextureFormat::R8G8B8A8_Unorm,
HasDepth  hasDepth = HasDepth::No 
)

◆ MSRenderTexture() [7/7]

SIV3D_NODISCARD_CXX20 s3d::MSRenderTexture::MSRenderTexture ( const Size size,
const ColorF color,
const TextureFormat format = TextureFormat::R8G8B8A8_Unorm,
HasDepth  hasDepth = HasDepth::No 
)

Member Function Documentation

◆ clear()

const MSRenderTexture& s3d::MSRenderTexture::clear ( const ColorF color) const

テクスチャを指定した色で塗りつぶします。デプスを持つ場合、デプスもクリアします。

Parameters
color塗りつぶしの色
Returns
*this

◆ readAsImage()

void s3d::MSRenderTexture::readAsImage ( Image image) const

◆ resolve()

void s3d::MSRenderTexture::resolve ( ) const

レンダリングされたマルチサンプルテクスチャを通常のテクスチャに resolve し、描画可能な状態にします。

◆ swap()

void s3d::MSRenderTexture::swap ( MSRenderTexture other)
noexcept

The documentation for this class was generated from the following file: