MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / SubtitleShadowOffset

Function SubtitleShadowOffset

engine/Poseidon/Game/TitEffects.cpp:250–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248 }
249}
250
251TitleShadowOffset SubtitleShadowOffset(int width2D, int height2D)
252{
253 // Equal pixel drop on both axes: offsetX*width2D == offsetY*height2D.
254 const float offsetY = 0.002f;
255 const float offsetX = width2D > 0 ? offsetY * float(height2D) / float(width2D) : offsetY;
256 return {offsetX, offsetY};
257}
258
259void TitleEffectBasic::Init(RString text)

Callers 2

DrawTextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected