MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / reticle_setShape

Function reticle_setShape

TheForceEngine/TFE_Game/reticle.cpp:78–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void reticle_setShape(u32 index)
79{
80 if (!s_reticleLoaded) { return; }
81 s_shapeIndex = std::min(index, (u32)RETICLE_COUNT-1);
82
83 s_reticleImage.overlayX = (index % RETICLE_COL) * RETICLE_SIZE;
84 s_reticleImage.overlayY = (index / RETICLE_COL) * RETICLE_SIZE;
85 TFE_PostProcess::setOverlayImage(s_reticleId, &s_reticleImage);
86}
87
88void reticle_setColor(const f32* color)
89{

Callers 3

configGraphicsFunction · 0.85
setSettingsTemplateFunction · 0.85
reticle_initFunction · 0.85

Calls 2

minFunction · 0.85
setOverlayImageFunction · 0.85

Tested by

no test coverage detected