O------------------------------------------------------------------------------O | olc::Decal IMPLEMENTATION | O------------------------------------------------------------------------------O
| 2186 | // | olc::Decal IMPLEMENTATION | |
| 2187 | // O------------------------------------------------------------------------------O |
| 2188 | Decal::Decal(olc::Sprite* spr, bool filter, bool clamp) |
| 2189 | { |
| 2190 | id = -1; |
| 2191 | if (spr == nullptr) return; |
| 2192 | width = spr->width; |
| 2193 | height = spr->height; |
| 2194 | sprite = spr; |
| 2195 | id = renderer->CreateTexture(sprite->width, sprite->height, filter, clamp); |
| 2196 | Update(); |
| 2197 | } |
| 2198 | |
| 2199 | Decal::Decal(const uint32_t nExistingTextureResource, olc::Sprite* spr) |
| 2200 | { |