| 2203 | } |
| 2204 | |
| 2205 | void Decal::Update() |
| 2206 | { |
| 2207 | if (sprite == nullptr) return; |
| 2208 | width = sprite->width; |
| 2209 | height = sprite->height; |
| 2210 | vUVScale = { 1.0f / float(width), 1.0f / float(height) }; |
| 2211 | renderer->ApplyTexture(id); |
| 2212 | renderer->UpdateTexture(id, sprite); |
| 2213 | } |
| 2214 | |
| 2215 | void Decal::UpdateSprite() |
| 2216 | { |
no test coverage detected