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

Method OverlayEffect

GTE/Graphics/OverlayEffect.cpp:13–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace gte;
12
13OverlayEffect::OverlayEffect(int32_t windowWidth, int32_t windowHeight)
14 :
15 mWindowWidth(static_cast<float>(windowWidth)),
16 mWindowHeight(static_cast<float>(windowHeight)),
17 mInvTextureWidth(0.0f),
18 mInvTextureHeight(0.0f),
19 mFactoryAPI(-1),
20 mOverlayRectangle{ 0, 0, 0, 0 },
21 mTextureRectangle{ 0, 0, 0, 0 },
22 mVBuffer{},
23 mIBuffer{},
24 mProgram{},
25 mEffect{}
26{
27}
28
29OverlayEffect::OverlayEffect(std::shared_ptr<ProgramFactory> const& factory,
30 int32_t windowWidth, int32_t windowHeight, int32_t textureWidth, int32_t textureHeight,

Callers

nothing calls this directly

Calls 3

CreateFromSourcesMethod · 0.80
GetAPIMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected