MCPcopy Create free account
hub / github.com/Illation/ETEngine / SetParameters

Method SetParameters

Engine/source/EtRendering/GraphicsTypes/TextureData.cpp:87–92  ·  view source on GitHub ↗

--------------------------------- 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

Source from the content-addressed store, hash-verified

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//
87void 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

Callers 15

CreateRenderTargetMethod · 0.80
CreateRenderTargetMethod · 0.80
InitMethod · 0.80
PrecalculateMethod · 0.80
PrecomputeMethod · 0.80
PrefilterCubeMethod · 0.80
GenerateFramebuffersMethod · 0.80
InitializeMethod · 0.80
InitializeMethod · 0.80
LoadFromMemoryMethod · 0.80
EquirectangularToCubeMapFunction · 0.80
InitMethod · 0.80

Calls 1

SetTextureParamsMethod · 0.80

Tested by

no test coverage detected