2D テクスチャのクラスです。
More...
#include <Texture.hpp>
◆ create() [1/2]
static Ref<Texture2D> ln::Texture2D::create |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
static |
テクスチャを作成します。ピクセルフォーマットは RGBA8 です。
- Parameters
-
[in] | width | : 幅 (px 単位) |
[in] | height | : 高さ (px 単位) |
- Returns
- 作成されたテクスチャ
◆ create() [2/2]
テクスチャを作成します。
- Parameters
-
[in] | width | : 幅 (px 単位) |
[in] | height | : 高さ (px 単位) |
[in] | format | : ピクセルフォーマット |
◆ init() [1/2]
void ln::Texture2D::init |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
protected |
テクスチャを作成します。ピクセルフォーマットは RGBA8 です。
- Parameters
-
[in] | width | : 幅 (px 単位) |
[in] | height | : 高さ (px 単位) |
- Returns
- 作成されたテクスチャ
◆ init() [2/2]
void ln::Texture2D::init |
( |
int |
width, |
|
|
int |
height, |
|
|
TextureFormat |
format |
|
) |
| |
|
protected |
テクスチャを作成します。
- Parameters
-
[in] | width | : 幅 (px 単位) |
[in] | height | : 高さ (px 単位) |
[in] | format | : ピクセルフォーマット |
◆ load()
ローカルのファイルを読み込み、テクスチャを作成します。
- Parameters
-
[in] | filePath | : 読み込むファイルのパス |
[in] | format | : ピクセルフォーマット |
このメソッドは TextureImporter のユーティリティです。 アセットからテクスチャを読み込みます。
- Parameters
-
[in] | filePath | : 読み込むファイルのパス |
サポートしているフォーマットは次の通りです。 PNG(.png), JPG(.jpg), TGA(.tga), BMP(.bmp), GIF(.gif)
◆ loadEmoji()
The documentation for this class was generated from the following file:
- /home/runner/work/Website/Website/_Lumino/include/LuminoEngine/Graphics/Texture.hpp