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

Method Apply

libs/drape/render_state.cpp:32–41  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

30
31// static
32void AlphaBlendingState::Apply(ref_ptr<GraphicsContext> context)
33{
34 // For Metal Rendering these settings must be set in the pipeline state.
35 auto const apiVersion = context->GetApiVersion();
36 if (apiVersion == dp::ApiVersion::OpenGLES3)
37 {
38 GLFunctions::glBlendEquation(gl_const::GLAddBlend);
39 GLFunctions::glBlendFunc(gl_const::GLSrcAlpha, gl_const::GLOneMinusSrcAlpha);
40 }
41}
42
43Blending::Blending(bool isEnabled) : m_isEnabled(isEnabled) {}
44

Callers 1

ApplyStateFunction · 0.45

Calls 1

GetApiVersionMethod · 0.45

Tested by

no test coverage detected