| 76 | } |
| 77 | |
| 78 | void 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 | |
| 88 | void reticle_setColor(const f32* color) |
| 89 | { |
no test coverage detected