|
UniDx
|
#include <Texture.h>
公開メンバ関数 | |
| Texture () | |
| bool | Load (const u8string &filePath) |
| 画像ファイルから読み込む | |
| bool | LoadFromMemoryRGBA8 (const void *pixels, int width, int height, bool isSRGB) |
| メモリ上のRGBA8画像(UNORM)からテクスチャを生成する | |
| void | bind () const |
| void | setName (StringId n) |
| 基底クラス UniDx::Object に属する継承公開メンバ関数 | |
| virtual | ~Object () |
| Object (ReadOnlyProperty< StringId >::Getter nameGet) | |
公開変数類 | |
| D3D11_TEXTURE_ADDRESS_MODE | wrapModeU |
| D3D11_TEXTURE_ADDRESS_MODE | wrapModeV |
| 基底クラス UniDx::Object に属する継承公開変数類 | |
| ReadOnlyProperty< StringId > | name |
限定公開メンバ関数 | |
| void | ensureSampler_ () |
限定公開変数類 | |
| ComPtr< ID3D11SamplerState > | samplerState |
| StringId | fileName |
| ComPtr< ID3D11ShaderResourceView > | m_srv = nullptr |
| DirectX::TexMetadata | m_info |
|
inline |
| void UniDx::Texture::bind | ( | ) | const |
|
protected |
| bool UniDx::Texture::Load | ( | const u8string & | filePath | ) |
画像ファイルから読み込む
| bool UniDx::Texture::LoadFromMemoryRGBA8 | ( | const void * | pixels, |
| int | width, | ||
| int | height, | ||
| bool | isSRGB ) |
メモリ上のRGBA8画像(UNORM)からテクスチャを生成する
| pixels | width * height * 4 bytes |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
| D3D11_TEXTURE_ADDRESS_MODE UniDx::Texture::wrapModeU |
| D3D11_TEXTURE_ADDRESS_MODE UniDx::Texture::wrapModeV |