Removed ShadeModel

dev
Tomasz Kapuściński 2021-12-05 13:01:12 +01:00
parent 0568fcdb81
commit d1489a1fb1
4 changed files with 0 additions and 21 deletions

View File

@ -229,16 +229,6 @@ enum CullMode
CULL_CCW
};
/**
* \enum ShadeModel
* \brief Shade model used in rendering
*/
enum ShadeModel
{
SHADE_FLAT,
SHADE_SMOOTH
};
/**
* \enum FillMode
* \brief Polygon fill mode
@ -571,9 +561,6 @@ public:
//! Sets the current cull mode
virtual void SetCullMode(CullMode mode) = 0;
//! Sets the shade model
virtual void SetShadeModel(ShadeModel model) = 0;
//! Sets shadow color
virtual void SetShadowColor(float value) = 0;

View File

@ -344,7 +344,6 @@ bool CEngine::Create()
}
m_device->SetClearColor(Color(0.0f, 0.0f, 0.0f, 0.0f));
m_device->SetShadeModel(SHADE_SMOOTH);
m_device->SetFillMode(FillMode::POLY);
SetFocus(m_focus);

View File

@ -1535,11 +1535,6 @@ void CGL33Device::SetCullMode(CullMode mode)
else assert(false);
}
void CGL33Device::SetShadeModel(ShadeModel model)
{
//glUniform1i(uni_SmoothShading, (model == SHADE_SMOOTH ? 1 : 0));
}
void CGL33Device::SetShadowColor(float value)
{
glUniform1f(m_uniforms.shadowColor, value);

View File

@ -195,8 +195,6 @@ public:
void SetCullMode(CullMode mode) override;
void SetShadeModel(ShadeModel model) override;
void SetShadowColor(float value) override;
void SetFillMode(FillMode mode) override;