For scalable source images in textures we want to set the resolution to rasterize at
| 147 | |
| 148 | // For scalable source images in textures we want to set the resolution to rasterize at |
| 149 | void TextureResource::rasterizeAt(size_t width, size_t height) |
| 150 | { |
| 151 | std::shared_ptr<TextureData> data; |
| 152 | if (mTextureData != nullptr) |
| 153 | data = mTextureData; |
| 154 | else |
| 155 | data = sTextureDataManager.get(this); |
| 156 | mSourceSize = Vector2f((float)width, (float)height); |
| 157 | data->setSourceSize((float)width, (float)height); |
| 158 | if (mForceLoad || (mTextureData != nullptr)) |
| 159 | data->load(); |
| 160 | } |
| 161 | |
| 162 | Vector2f TextureResource::getSourceImageSize() const |
| 163 | { |
no test coverage detected