UniDx
読み取り中…
検索中…
一致する文字列を見つけられません
UniDx::Material クラス

#include <Material.h>

UniDx::Material の継承関係図
UniDx::Object

公開型

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< Shadershader
Color color
ReadOnlyProperty< Texture * > mainTexture
D3D11_DEPTH_WRITE_MASK depthWrite
D3D11_COMPARISON_FUNC ztest
D3D11_CULL_MODE cullMode
RenderingMode renderingMode
基底クラス UniDx::Object に属する継承公開変数類
ReadOnlyProperty< StringIdname

限定公開メンバ関数

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

型定義メンバ詳解

◆ Value

typedef std::vector<uint8_t> UniDx::Material::Value

構築子と解体子

◆ Material()

UniDx::Material::Material ( )

関数詳解

◆ AddTexture()

void UniDx::Material::AddTexture ( std::shared_ptr< Texture > tex)

◆ bind()

bool UniDx::Material::bind ( )
virtual

◆ createConstantBuffer()

void UniDx::Material::createConstantBuffer ( )
protected

◆ getBlendMode()

BlendMode UniDx::Material::getBlendMode ( ) const
inline

◆ GetBytes()

const void * UniDx::Material::GetBytes ( StringId name) const

マテリアル変数を取得

◆ GetColor()

Color UniDx::Material::GetColor ( StringId name)
inline

◆ GetFloat()

float UniDx::Material::GetFloat ( StringId name)
inline

◆ GetInt()

int UniDx::Material::GetInt ( StringId name) const
inline

◆ GetMatrix()

void UniDx::Material::GetMatrix ( StringId name,
Matrix4x4 * m )
inline

◆ getTextures()

std::span< std::shared_ptr< Texture > > UniDx::Material::getTextures ( )
inline

◆ GetVector()

Vector4 UniDx::Material::GetVector ( StringId name)
inline

◆ OnEnable()

void UniDx::Material::OnEnable ( )
virtual

◆ setBlendMode()

void UniDx::Material::setBlendMode ( BlendMode e)

◆ SetBytes()

bool UniDx::Material::SetBytes ( StringId name,
const void * data,
uint32_t size )

マテリアル変数を設定

戻り値
値を設定したかすでにその値になっていた場合 true。書き込めなければ false

◆ SetColor()

void UniDx::Material::SetColor ( StringId name,
Color c )
inline

◆ SetFloat()

void UniDx::Material::SetFloat ( StringId name,
float f )
inline

◆ SetInt()

void UniDx::Material::SetInt ( StringId name,
int n )
inline

◆ SetMatrix()

void UniDx::Material::SetMatrix ( StringId name,
const Matrix4x4 & m )
inline

◆ SetVector() [1/3]

void UniDx::Material::SetVector ( StringId name,
Vector2 v )
inline

◆ SetVector() [2/3]

void UniDx::Material::SetVector ( StringId name,
Vector3 v )
inline

◆ SetVector() [3/3]

void UniDx::Material::SetVector ( StringId name,
Vector4 v )
inline

メンバ詳解

◆ blendMode

BlendMode UniDx::Material::blendMode
protected

◆ blendState

ComPtr<ID3D11BlendState> UniDx::Material::blendState
protected

◆ cbStaging

std::vector<uint8_t> UniDx::Material::cbStaging
protected

◆ color

Color UniDx::Material::color

◆ constantBufferPerMaterial

ComPtr<ID3D11Buffer> UniDx::Material::constantBufferPerMaterial
protected

◆ cullMode

D3D11_CULL_MODE UniDx::Material::cullMode

◆ depthStencilState

ComPtr<ID3D11DepthStencilState> UniDx::Material::depthStencilState
protected

◆ depthWrite

D3D11_DEPTH_WRITE_MASK UniDx::Material::depthWrite

◆ dirty

bool UniDx::Material::dirty = true
protected

◆ mainTexture

ReadOnlyProperty<Texture*> UniDx::Material::mainTexture

◆ rasterizerState

ComPtr<ID3D11RasterizerState> UniDx::Material::rasterizerState
protected

◆ renderingMode

RenderingMode UniDx::Material::renderingMode

◆ shader

std::shared_ptr<Shader> UniDx::Material::shader

◆ textures

std::vector<std::shared_ptr<Texture> > UniDx::Material::textures
protected

◆ ztest

D3D11_COMPARISON_FUNC UniDx::Material::ztest

このクラス詳解は次のファイルから抽出されました: