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

Method GetState

libs/drape_frontend/line_shape.cpp:278–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276 float GetMaskLengthG() const { return m_texCoordGen.GetMaskLength() / m_baseGtoPScale; }
277
278 dp::RenderState GetState() override
279 {
280 auto state = CreateRenderState(gpu::Program::DashedLine, m_params.m_depthLayer);
281 state.SetDepthTestEnabled(m_params.m_depthTestEnabled);
282 state.SetColorTexture(m_params.m_color.GetTexture());
283 state.SetMaskTexture(m_texCoordGen.GetRegion().GetTexture());
284 return state;
285 }
286
287 void SubmitVertex(glsl::vec3 const & pivot, glsl::vec2 const & normal, bool isLeft, float offsetFromStart)
288 {

Callers

nothing calls this directly

Calls 5

CreateRenderStateFunction · 0.85
SetColorTextureMethod · 0.80
SetMaskTextureMethod · 0.80
SetDepthTestEnabledMethod · 0.45
GetTextureMethod · 0.45

Tested by

no test coverage detected