MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / VertexColorEffect

Method VertexColorEffect

GTE/Graphics/VertexColorEffect.cpp:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using namespace gte;
11
12VertexColorEffect::VertexColorEffect(std::shared_ptr<ProgramFactory> const& factory)
13{
14 int32_t api = factory->GetAPI();
15 mProgram = factory->CreateFromSources(*msVSSource[api], *msPSSource[api], "");
16 if (mProgram)
17 {
18 mProgram->GetVertexShader()->Set("PVWMatrix", mPVWMatrixConstant);
19 }
20}
21
22void VertexColorEffect::SetPVWMatrixConstant(std::shared_ptr<ConstantBuffer> const& buffer)
23{

Callers

nothing calls this directly

Calls 3

CreateFromSourcesMethod · 0.80
GetAPIMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected