--------------------------------- TextureData::SetParameters Sets parameters on a texture, can optionally be enforced This function should be called either way when a new texture is created, - because if we leave the default parameters OpenGL expects us to generate a mip map, or we can disable mip maps which will change the min filter
| 85 | // - because if we leave the default parameters OpenGL expects us to generate a mip map, or we can disable mip maps which will change the min filter |
| 86 | // |
| 87 | void TextureData::SetParameters(TextureParameters const& params, bool const force) |
| 88 | { |
| 89 | ET_ASSERT(m_Handle == 0u, "Shouldn't set parameters after a handle was created!"); |
| 90 | |
| 91 | Viewport::GetCurrentApiContext()->SetTextureParams(*this, m_MipLevels, m_Parameters, params, force); |
| 92 | } |
| 93 | |
| 94 | //--------------------------------- |
| 95 | // TextureData::Resize |
no test coverage detected