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

Method SetTexture

GTE/Graphics/OverlayEffect.cpp:120–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void OverlayEffect::SetTexture(std::shared_ptr<Texture2> const& texture)
121{
122 if (texture)
123 {
124 auto const& pshader = mEffect->GetPixelShader();
125 auto sampler = pshader->Get<SamplerState>("imageSampler");
126 pshader->Set("imageTexture", texture, "imageSampler", sampler);
127 }
128}
129
130void OverlayEffect::SetTexture(std::string const& textureName,
131 std::shared_ptr<Texture2> const& texture)

Callers 15

Window2Method · 0.80
OnResizeMethod · 0.80
ShortestPathWindow2Method · 0.80
CreateBackgroundMethod · 0.80
CreateOverlaysMethod · 0.80
ConvolutionWindow2Method · 0.80
OnIdleMethod · 0.80
OnIdleMethod · 0.80

Calls 1

SetMethod · 0.45

Tested by 1

ShortestPathWindow2Method · 0.64