Graphics/Material: Add PrimitiveMode support
This commit is contained in:
@@ -425,6 +425,11 @@ namespace Nz
|
||||
return m_pipelineInfo.pointSize;
|
||||
}
|
||||
|
||||
inline PrimitiveMode Material::GetPrimitiveMode() const
|
||||
{
|
||||
return m_pipelineInfo.primitiveMode;
|
||||
}
|
||||
|
||||
inline const std::shared_ptr<const MaterialSettings>& Material::GetSettings() const
|
||||
{
|
||||
return m_settings;
|
||||
@@ -693,6 +698,14 @@ namespace Nz
|
||||
InvalidatePipeline();
|
||||
}
|
||||
|
||||
|
||||
inline void Material::SetPrimitiveMode(PrimitiveMode mode)
|
||||
{
|
||||
m_pipelineInfo.primitiveMode = mode;
|
||||
|
||||
InvalidatePipeline();
|
||||
}
|
||||
|
||||
inline void Material::SetTexture(std::size_t textureIndex, std::shared_ptr<Texture> texture)
|
||||
{
|
||||
NazaraAssert(textureIndex < m_textures.size(), "Invalid texture index");
|
||||
|
||||
Reference in New Issue
Block a user