|
UniDx
|
#include <Material.h>
公開型 | |
| typedef std::vector< uint8_t > | Value |
公開メンバ関数 | |
| Material () | |
| const void * | GetBytes (StringId name) const |
| マテリアル変数を取得 | |
| bool | SetBytes (StringId name, const void *data, uint32_t size) |
| マテリアル変数を設定 | |
| int | GetInt (StringId name) const |
| float | GetFloat (StringId name) |
| Color | GetColor (StringId name) |
| Vector4 | GetVector (StringId name) |
| void | GetMatrix (StringId name, Matrix4x4 *m) |
| void | SetInt (StringId name, int n) |
| void | SetFloat (StringId name, float f) |
| void | SetColor (StringId name, Color c) |
| void | SetVector (StringId name, Vector4 v) |
| void | SetVector (StringId name, Vector3 v) |
| void | SetVector (StringId name, Vector2 v) |
| void | SetMatrix (StringId name, const Matrix4x4 &m) |
| virtual bool | bind () |
| std::span< std::shared_ptr< Texture > > | getTextures () |
| void | AddTexture (std::shared_ptr< Texture > tex) |
| BlendMode | getBlendMode () const |
| void | setBlendMode (BlendMode e) |
| virtual void | OnEnable () |
| 基底クラス UniDx::Object に属する継承公開メンバ関数 | |
| virtual | ~Object () |
| Object (ReadOnlyProperty< StringId >::Getter nameGet) | |
公開変数類 | |
| std::shared_ptr< Shader > | shader |
| Color | color |
| ReadOnlyProperty< Texture * > | mainTexture |
| D3D11_DEPTH_WRITE_MASK | depthWrite |
| D3D11_COMPARISON_FUNC | ztest |
| D3D11_CULL_MODE | cullMode |
| RenderingMode | renderingMode |
| 基底クラス UniDx::Object に属する継承公開変数類 | |
| ReadOnlyProperty< StringId > | name |
限定公開メンバ関数 | |
| void | createConstantBuffer () |
限定公開変数類 | |
| ComPtr< ID3D11Buffer > | constantBufferPerMaterial |
| ComPtr< ID3D11DepthStencilState > | depthStencilState |
| ComPtr< ID3D11BlendState > | blendState |
| ComPtr< ID3D11RasterizerState > | rasterizerState |
| std::vector< std::shared_ptr< Texture > > | textures |
| BlendMode | blendMode |
| std::vector< uint8_t > | cbStaging |
| bool | dirty = true |
| typedef std::vector<uint8_t> UniDx::Material::Value |
| UniDx::Material::Material | ( | ) |
| void UniDx::Material::AddTexture | ( | std::shared_ptr< Texture > | tex | ) |
|
virtual |
|
protected |
|
inline |
| const void * UniDx::Material::GetBytes | ( | StringId | name | ) | const |
マテリアル変数を取得
|
inline |
|
inline |
|
inline |
|
virtual |
| void UniDx::Material::setBlendMode | ( | BlendMode | e | ) |
| bool UniDx::Material::SetBytes | ( | StringId | name, |
| const void * | data, | ||
| uint32_t | size ) |
マテリアル変数を設定
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
| Color UniDx::Material::color |
|
protected |
| D3D11_CULL_MODE UniDx::Material::cullMode |
|
protected |
| D3D11_DEPTH_WRITE_MASK UniDx::Material::depthWrite |
|
protected |
| ReadOnlyProperty<Texture*> UniDx::Material::mainTexture |
|
protected |
| RenderingMode UniDx::Material::renderingMode |
| std::shared_ptr<Shader> UniDx::Material::shader |
|
protected |
| D3D11_COMPARISON_FUNC UniDx::Material::ztest |