| 614 | } |
| 615 | |
| 616 | void ScreenMap::addOffset(const vec2f &p) { |
| 617 | vec2f *data = mLookUpTable->getDataMutable(); |
| 618 | for (u32 i = 0; i < length; i++) { |
| 619 | vec2f &curr = data[i]; |
| 620 | curr.x += p.x; |
| 621 | curr.y += p.y; |
| 622 | } |
| 623 | } |
| 624 | |
| 625 | ScreenMap& ScreenMap::addOffsetX(float x) { addOffset({x, 0}); return *this; } |
| 626 | ScreenMap& ScreenMap::addOffsetY(float y) { addOffset({0, y}); return *this; } |
nothing calls this directly
no test coverage detected