[core] Add face culling mode parameter to Program::draw

Add a parameter to Program::draw to control whether face culling should
be enabled. This will be used in a follow up commit to enable face
culling for fill extrusion layers.
This commit is contained in:
Bruno de Oliveira Abinader
2018-08-23 01:05:26 +03:00
committed by Ander Conselvan de Oliveira
parent e4e43bb54f
commit 05a7b78aa8
25 changed files with 165 additions and 1 deletions

View File

@@ -73,6 +73,7 @@ public:
gl::DepthMode depthMode,
gl::StencilMode stencilMode,
gl::ColorMode colorMode,
gl::CullFaceMode cullFaceMode,
const gl::IndexBuffer<DrawMode>& indexBuffer,
const SegmentVector<Attributes>& segments,
const typename AllUniforms::Values& allUniformValues,
@@ -91,6 +92,7 @@ public:
std::move(depthMode),
std::move(stencilMode),
std::move(colorMode),
std::move(cullFaceMode),
allUniformValues,
vertexArrayIt->second,
Attributes::offsetBindings(allAttributeBindings, segment.vertexOffset),