This repository has been archived on 2024-03-22. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
DX11Starter/Material.cpp
2022-02-27 12:28:58 -05:00

42 lines
808 B
C++

#include "Material.h"
Material::Material(DirectX::XMFLOAT4 _tint, std::shared_ptr<SimpleVertexShader> _vertexShader, std::shared_ptr<SimplePixelShader> _pixelShader)
{
tint = _tint;
vertexShader = _vertexShader;
pixelShader = _pixelShader;
}
Material::~Material()
{
}
DirectX::XMFLOAT4 Material::GetTint()
{
return tint;
}
std::shared_ptr<SimpleVertexShader> Material::GetVertexShader()
{
return vertexShader;
}
std::shared_ptr<SimplePixelShader> Material::GetPixelShader()
{
return pixelShader;
}
void Material::SetTint(DirectX::XMFLOAT4 _tint)
{
tint = _tint;
}
void Material::SetVertexShader(std::shared_ptr<SimpleVertexShader> _vertexShader)
{
vertexShader = _vertexShader;
}
void Material::SetPixelShader(std::shared_ptr<SimplePixelShader> _pixelShader)
{
pixelShader = _pixelShader;
}