mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 13:48:30 +09:00
[Improvement] (MG_State/RenderState): Remove redundant cullFaceEnabled setter/getter.
This commit is contained in:
@@ -50,6 +50,8 @@ namespace MobileGL {
|
||||
return m_blendEnabled;
|
||||
case CapabilityInput::DepthTest:
|
||||
return m_depthTestEnabled;
|
||||
case CapabilityInput::CullFace:
|
||||
return m_cullFaceEnabled;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
@@ -132,14 +134,6 @@ namespace MobileGL {
|
||||
CullFaceMode RenderState::GetCullFaceMode() const {
|
||||
return m_cullFaceMode;
|
||||
}
|
||||
|
||||
void RenderState::SetCullFaceEnabled(Bool enabled) {
|
||||
m_cullFaceEnabled = enabled;
|
||||
}
|
||||
|
||||
Bool RenderState::IsCullFaceEnabled() const {
|
||||
return m_cullFaceEnabled;
|
||||
}
|
||||
} // namespace GLState
|
||||
} // namespace MG_State
|
||||
} // namespace MobileGL
|
||||
|
||||
Reference in New Issue
Block a user