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

テクスチャ More...

#include <Texture.hpp>

Inherits s3d::AssetHandle< Texture >.

Inherited by s3d::DynamicTexture, s3d::RenderTexture, and s3d::TextureAsset.

Classes

struct  Dynamic
 
struct  MSRender
 
struct  Render
 

Public Member Functions

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...
 

Protected Member Functions

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)
 

Additional Inherited Members

- Public Types inherited from s3d::AssetHandle< Texture >
using AssetIDWrapperType = AssetIDWrapper< AssetHandle >
 アセット ID ラッパー型 More...
 
using IDType = typename AssetIDWrapperType::IDType
 アセット ID 型 More...
 
- Protected Attributes inherited from s3d::AssetHandle< Texture >
std::shared_ptr< AssetIDWrapperTypem_handle
 

Detailed Description

テクスチャ

Remarks
描画できる画像です。

Constructor & Destructor Documentation

◆ Texture() [1/17]

SIV3D_NODISCARD_CXX20 s3d::Texture::Texture ( )

◆ Texture() [2/17]

SIV3D_NODISCARD_CXX20 s3d::Texture::Texture ( const Image image,
TextureDesc  desc = TextureDesc::Unmipped 
)
explicit

◆ Texture() [3/17]

SIV3D_NODISCARD_CXX20 s3d::Texture::Texture ( const Image image,
const Array< Image > &  mipmaps,
TextureDesc  desc = TextureDesc::Mipped 
)

◆ Texture() [4/17]

SIV3D_NODISCARD_CXX20 s3d::Texture::Texture ( FilePathView  path,
TextureDesc  desc = TextureDesc::Unmipped 
)
explicit

画像ファイルからテクスチャを作成します。

Parameters
pathファイルパス
descテクスチャの設定

◆ Texture() [5/17]

SIV3D_NODISCARD_CXX20 s3d::Texture::Texture ( IReader &&  reader,
TextureDesc  desc = TextureDesc::Unmipped 
)
explicit

◆ Texture() [6/17]

SIV3D_NODISCARD_CXX20 s3d::Texture::Texture ( FilePathView  rgb,
FilePathView  alpha,
TextureDesc  desc = TextureDesc::Unmipped 
)

◆ Texture() [7/17]

SIV3D_NODISCARD_CXX20 s3d::Texture::Texture ( const Color rgb,
FilePathView  alpha,
TextureDesc  desc = TextureDesc::Unmipped 
)

◆ Texture() [8/17]

SIV3D_NODISCARD_CXX20 s3d::Texture::Texture ( const Emoji emoji,
TextureDesc  desc = TextureDesc::Mipped 
)
explicit

絵文字からテクスチャを作成します。

Parameters
emoji絵文字
Remarks
テクスチャのサイズは Emoji::ImageSize です。
Parameters
descテクスチャの設定

◆ Texture() [9/17]

SIV3D_NODISCARD_CXX20 s3d::Texture::Texture ( const Icon icon,
int32  size,
TextureDesc  desc = TextureDesc::Mipped 
)
explicit

アイコンからテクスチャを作成します。

Parameters
iconアイコン
sizeアイコンのサイズ
descテクスチャの設定

◆ ~Texture()

virtual s3d::Texture::~Texture ( )
virtual

◆ Texture() [10/17]

SIV3D_NODISCARD_CXX20 s3d::Texture::Texture ( Dynamic  ,
const Size size,
const void *  pData,
uint32  stride,
const TextureFormat format,
TextureDesc  desc 
)
protected

◆ Texture() [11/17]

SIV3D_NODISCARD_CXX20 s3d::Texture::Texture ( Dynamic  ,
const Size size,
const ColorF color,
const TextureFormat format,
TextureDesc  desc 
)
protected

◆ Texture() [12/17]

SIV3D_NODISCARD_CXX20 s3d::Texture::Texture ( Render  ,
const Size size,
const TextureFormat format,
HasDepth  hasDepth 
)
protected

◆ Texture() [13/17]

SIV3D_NODISCARD_CXX20 s3d::Texture::Texture ( Render  ,
const Image image,
HasDepth  hasDepth 
)
protected

◆ Texture() [14/17]

SIV3D_NODISCARD_CXX20 s3d::Texture::Texture ( Render  ,
const Grid< float > &  image,
HasDepth  hasDepth 
)
protected

◆ Texture() [15/17]

SIV3D_NODISCARD_CXX20 s3d::Texture::Texture ( Render  ,
const Grid< Float2 > &  image,
HasDepth  hasDepth 
)
protected

◆ Texture() [16/17]

SIV3D_NODISCARD_CXX20 s3d::Texture::Texture ( Render  ,
const Grid< Float4 > &  image,
HasDepth  hasDepth 
)
protected

◆ Texture() [17/17]

SIV3D_NODISCARD_CXX20 s3d::Texture::Texture ( MSRender  ,
const Size size,
const TextureFormat format,
HasDepth  hasDepth 
)
protected

Member Function Documentation

◆ draw() [1/21]

RectF s3d::Texture::draw ( Arg::bottomCenter_< Vec2 bottomCenter,
const ColorF diffuse = Palette::White 
) const

◆ draw() [2/21]

RectF s3d::Texture::draw ( Arg::bottomLeft_< Vec2 bottomLeft,
const ColorF diffuse = Palette::White 
) const

◆ draw() [3/21]

RectF s3d::Texture::draw ( Arg::bottomRight_< Vec2 bottomRight,
const ColorF diffuse = Palette::White 
) const

◆ draw() [4/21]

RectF s3d::Texture::draw ( Arg::center_< Vec2 center,
const ColorF diffuse = Palette::White 
) const

◆ draw() [5/21]

RectF s3d::Texture::draw ( Arg::left_< ColorF leftColor,
Arg::right_< ColorF rightColor 
) const

◆ draw() [6/21]

RectF s3d::Texture::draw ( Arg::leftCenter_< Vec2 leftCenter,
const ColorF diffuse = Palette::White 
) const

◆ draw() [7/21]

RectF s3d::Texture::draw ( Arg::rightCenter_< Vec2 rightCenter,
const ColorF diffuse = Palette::White 
) const

◆ draw() [8/21]

RectF s3d::Texture::draw ( Arg::top_< ColorF topColor,
Arg::bottom_< ColorF bottomColor 
) const

◆ draw() [9/21]

RectF s3d::Texture::draw ( Arg::topCenter_< Vec2 topCenter,
const ColorF diffuse = Palette::White 
) const

◆ draw() [10/21]

RectF s3d::Texture::draw ( Arg::topLeft_< Vec2 topLeft,
const ColorF diffuse = Palette::White 
) const

◆ draw() [11/21]

RectF s3d::Texture::draw ( Arg::topRight_< Vec2 topRight,
const ColorF diffuse = Palette::White 
) const

◆ draw() [12/21]

RectF s3d::Texture::draw ( const ColorF color0,
const ColorF color1,
const ColorF color2,
const ColorF color3 
) const

◆ draw() [13/21]

RectF s3d::Texture::draw ( const ColorF diffuse = Palette::White) const

◆ draw() [14/21]

RectF s3d::Texture::draw ( const Vec2 pos,
Arg::left_< ColorF leftColor,
Arg::right_< ColorF rightColor 
) const

◆ draw() [15/21]

RectF s3d::Texture::draw ( const Vec2 pos,
Arg::top_< ColorF topColor,
Arg::bottom_< ColorF bottomColor 
) const

◆ draw() [16/21]

RectF s3d::Texture::draw ( const Vec2 pos,
const ColorF color0,
const ColorF color1,
const ColorF color2,
const ColorF color3 
) const

◆ draw() [17/21]

RectF s3d::Texture::draw ( const Vec2 pos,
const ColorF diffuse = Palette::White 
) const

◆ draw() [18/21]

RectF s3d::Texture::draw ( double  x,
double  y,
Arg::left_< ColorF leftColor,
Arg::right_< ColorF rightColor 
) const

◆ draw() [19/21]

RectF s3d::Texture::draw ( double  x,
double  y,
Arg::top_< ColorF topColor,
Arg::bottom_< ColorF bottomColor 
) const

◆ draw() [20/21]

RectF s3d::Texture::draw ( double  x,
double  y,
const ColorF color0,
const ColorF color1,
const ColorF color2,
const ColorF color3 
) const

◆ draw() [21/21]

RectF s3d::Texture::draw ( double  x,
double  y,
const ColorF diffuse = Palette::White 
) const

左上位置を指定してテクスチャを描画します。

Parameters
x描画を開始する左上の X 座標
y描画を開始する左上の Y 座標
diffuse描画時に乗算する色
Returns
テクスチャが描画された領域

◆ drawAt() [1/4]

RectF s3d::Texture::drawAt ( const Vec2 pos,
const ColorF color0,
const ColorF color1,
const ColorF color2,
const ColorF color3 
) const

◆ drawAt() [2/4]

RectF s3d::Texture::drawAt ( const Vec2 pos,
const ColorF diffuse = Palette::White 
) const

◆ drawAt() [3/4]

RectF s3d::Texture::drawAt ( double  x,
double  y,
const ColorF color0,
const ColorF color1,
const ColorF color2,
const ColorF color3 
) const

◆ drawAt() [4/4]

RectF s3d::Texture::drawAt ( double  x,
double  y,
const ColorF diffuse = Palette::White 
) const

◆ drawAtClipped() [1/2]

RectF s3d::Texture::drawAtClipped ( const Vec2 pos,
const RectF clipRect,
const ColorF diffuse = Palette::White 
) const

◆ drawAtClipped() [2/2]

RectF s3d::Texture::drawAtClipped ( double  x,
double  y,
const RectF clipRect,
const ColorF diffuse = Palette::White 
) const

◆ drawClipped() [1/2]

RectF s3d::Texture::drawClipped ( const Vec2 pos,
const RectF clipRect,
const ColorF diffuse = Palette::White 
) const

◆ drawClipped() [2/2]

RectF s3d::Texture::drawClipped ( double  x,
double  y,
const RectF clipRect,
const ColorF diffuse = Palette::White 
) const

◆ fitted() [1/2]

TextureRegion s3d::Texture::fitted ( const Vec2 size,
AllowScaleUp  allowScaleUp = AllowScaleUp::Yes 
) const

◆ fitted() [2/2]

TextureRegion s3d::Texture::fitted ( double  width,
double  height,
AllowScaleUp  allowScaleUp = AllowScaleUp::Yes 
) const

◆ flipped() [1/2]

TextureRegion s3d::Texture::flipped ( ) const

◆ flipped() [2/2]

TextureRegion s3d::Texture::flipped ( bool  doFlip) const

◆ getDesc()

TextureDesc s3d::Texture::getDesc ( ) const

テクスチャの設定を返します。

Returns
テクスチャの設定

◆ getFormat()

TextureFormat s3d::Texture::getFormat ( ) const

テクスチャのフォーマットを返します。

Returns
テクスチャのフォーマット

◆ hasDepth()

bool s3d::Texture::hasDepth ( ) const

デプスバッファを持っているかを返します。

Returns
デプスバッファを持っている場合 true, それ以外の場合は false

◆ height()

int32 s3d::Texture::height ( ) const

テクスチャの高さ(ピクセル)を返します。

Returns
テクスチャの高さ(ピクセル)

◆ horizontalAspectRatio()

template<class Type = double>
Type s3d::Texture::horizontalAspectRatio ( ) const
noexcept

◆ isMipped()

bool s3d::Texture::isMipped ( ) const

ミップマッピングが有効化されているかを返します。

Returns
ミップマッピングが有効化されている場合 true, それ以外の場合は false

◆ isSDF()

bool s3d::Texture::isSDF ( ) const

◆ mapped() [1/2]

TextureRegion s3d::Texture::mapped ( double  width,
double  height 
) const

◆ mapped() [2/2]

TextureRegion s3d::Texture::mapped ( Vec2  size) const

◆ mirrored() [1/2]

TextureRegion s3d::Texture::mirrored ( ) const

◆ mirrored() [2/2]

TextureRegion s3d::Texture::mirrored ( bool  doMirror) const

◆ operator()() [1/6]

TextureRegion s3d::Texture::operator() ( const RectF rect) const

◆ operator()() [2/6]

TextureRegion s3d::Texture::operator() ( const Vec2 xy,
const Vec2 size 
) const

◆ operator()() [3/6]

TextureRegion s3d::Texture::operator() ( const Vec2 xy,
double  w,
double  h 
) const

◆ operator()() [4/6]

TextureRegion s3d::Texture::operator() ( double  x,
double  y,
const Vec2 size 
) const

◆ operator()() [5/6]

TextureRegion s3d::Texture::operator() ( double  x,
double  y,
double  size 
) const

◆ operator()() [6/6]

TextureRegion s3d::Texture::operator() ( double  x,
double  y,
double  w,
double  h 
) const

◆ region() [1/4]

RectF s3d::Texture::region ( double  x,
double  y 
) const

◆ region() [2/4]

Rect s3d::Texture::region ( int32  x,
int32  y 
) const

◆ region() [3/4]

Rect s3d::Texture::region ( Point  pos = Point{ 0, 0 }) const

◆ region() [4/4]

RectF s3d::Texture::region ( Vec2  pos) const

◆ regionAt() [1/2]

RectF s3d::Texture::regionAt ( double  x,
double  y 
) const

◆ regionAt() [2/2]

RectF s3d::Texture::regionAt ( Vec2  pos) const

◆ repeated() [1/2]

TextureRegion s3d::Texture::repeated ( double  xRepeat,
double  yRepeat 
) const

◆ repeated() [2/2]

TextureRegion s3d::Texture::repeated ( Vec2  _repeat) const

◆ resized() [1/3]

TextureRegion s3d::Texture::resized ( double  size) const

長辺が指定したサイズになるようリサイズした TextureRegion を返します。

Parameters
size長辺のサイズ
Returns
長辺が指定したサイズになるようリサイズした TextureRegion

◆ resized() [2/3]

TextureRegion s3d::Texture::resized ( double  width,
double  height 
) const

◆ resized() [3/3]

TextureRegion s3d::Texture::resized ( Vec2  size) const

◆ rotated()

TexturedQuad s3d::Texture::rotated ( double  angle) const

◆ rotatedAt() [1/2]

TexturedQuad s3d::Texture::rotatedAt ( const Vec2 pos,
double  angle 
) const

◆ rotatedAt() [2/2]

TexturedQuad s3d::Texture::rotatedAt ( double  x,
double  y,
double  angle 
) const

◆ rounded() [1/2]

TexturedRoundRect s3d::Texture::rounded ( double  r) const

◆ rounded() [2/2]

TexturedRoundRect s3d::Texture::rounded ( double  x,
double  y,
double  w,
double  h,
double  r 
) const

◆ scaled() [1/3]

TextureRegion s3d::Texture::scaled ( double  s) const

◆ scaled() [2/3]

TextureRegion s3d::Texture::scaled ( double  xs,
double  ys 
) const

◆ scaled() [3/3]

TextureRegion s3d::Texture::scaled ( Vec2  s) const

◆ size()

Size s3d::Texture::size ( ) const

テクスチャの幅と高さ(ピクセル)を返します。

Returns
テクスチャの幅と高さ(ピクセル)

◆ srgbSampling()

bool s3d::Texture::srgbSampling ( ) const

◆ swap()

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

◆ uv() [1/2]

TextureRegion s3d::Texture::uv ( const RectF rect) const

◆ uv() [2/2]

TextureRegion s3d::Texture::uv ( double  u,
double  v,
double  w,
double  h 
) const

◆ width()

int32 s3d::Texture::width ( ) const

テクスチャの幅(ピクセル)を返します。

Returns
テクスチャの幅(ピクセル)

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