mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-07 19:58:32 +09:00
[Improvement] (MG_State/RenderState): Remove redundant cullFaceEnabled setter/getter.
This commit is contained in:
@@ -281,14 +281,6 @@ namespace MobileGL {
|
||||
return m_renderState.GetCullFaceMode();
|
||||
}
|
||||
|
||||
void GLContext::SetCullFaceEnabled(Bool enabled) {
|
||||
m_renderState.SetCullFaceEnabled(enabled);
|
||||
}
|
||||
|
||||
Bool GLContext::IsCullFaceEnabled() const {
|
||||
return m_renderState.IsCullFaceEnabled();
|
||||
}
|
||||
|
||||
// Framebuffer
|
||||
Vector<Uint> GLContext::GenFramebufferNames(Uint number) {
|
||||
return m_framebufferState.GenerateNames(number);
|
||||
|
||||
@@ -90,8 +90,6 @@ namespace MobileGL {
|
||||
Int GetPixelStoreParam(PixelStoreParam param) const;
|
||||
void SetCullFaceMode(CullFaceMode mode);
|
||||
CullFaceMode GetCullFaceMode() const;
|
||||
void SetCullFaceEnabled(Bool enabled);
|
||||
Bool IsCullFaceEnabled() const;
|
||||
|
||||
// Framebuffer
|
||||
Vector<Uint> GenFramebufferNames(Uint number);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -150,8 +150,6 @@ namespace MobileGL {
|
||||
// Cull Face
|
||||
void SetCullFaceMode(CullFaceMode mode);
|
||||
CullFaceMode GetCullFaceMode() const;
|
||||
void SetCullFaceEnabled(Bool enabled);
|
||||
Bool IsCullFaceEnabled() const;
|
||||
|
||||
private:
|
||||
// Rasterization
|
||||
|
||||
Reference in New Issue
Block a user