MCPcopy Create free account
hub / github.com/comaps/comaps / DecodeTestFunction

Function DecodeTestFunction

libs/drape/oglcontext.cpp:15–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace
14{
15glConst DecodeTestFunction(TestFunction depthFunction)
16{
17 switch (depthFunction)
18 {
19 case TestFunction::Never: return gl_const::GLNever;
20 case TestFunction::Less: return gl_const::GLLess;
21 case TestFunction::Equal: return gl_const::GLEqual;
22 case TestFunction::LessOrEqual: return gl_const::GLLessOrEqual;
23 case TestFunction::Greater: return gl_const::GLGreat;
24 case TestFunction::NotEqual: return gl_const::GLNotEqual;
25 case TestFunction::GreaterOrEqual: return gl_const::GLGreatOrEqual;
26 case TestFunction::Always: return gl_const::GLAlways;
27 }
28 UNREACHABLE();
29}
30
31glConst DecodeStencilFace(StencilFace stencilFace)
32{

Callers 2

SetDepthTestFunctionMethod · 0.70
SetStencilFunctionMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected