MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / ColorBackground

Method ColorBackground

src/Nazara/Graphics/ColorBackground.cpp:46–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 */
45
46 ColorBackground::ColorBackground(const Color& color) :
47 m_color(color)
48 {
49 m_uberShader = UberShaderLibrary::Get("Basic");
50
51 ParameterList list;
52 list.SetParameter("UNIFORM_VERTEX_DEPTH", true);
53 m_uberShaderInstance = m_uberShader->Get(list);
54
55 const Shader* shader = m_uberShaderInstance->GetShader();
56 m_materialDiffuseUniform = shader->GetUniformLocation("MaterialDiffuse");
57 m_vertexDepthUniform = shader->GetUniformLocation("VertexDepth");
58 }
59
60 /*!
61 * \brief Draws this relatively to the viewer

Callers

nothing calls this directly

Calls 4

SetParameterMethod · 0.80
GetUniformLocationMethod · 0.80
GetMethod · 0.45
GetShaderMethod · 0.45

Tested by

no test coverage detected