[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:
committed by
Ander Conselvan de Oliveira
parent
e4e43bb54f
commit
05a7b78aa8
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user