MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GenerateMipmap

Method GenerateMipmap

Source/Graphics/textures.cpp:733–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731#endif
732
733void Textures::GenerateMipmap(const TextureRef& tex_ref) {
734 PROFILER_GPU_ZONE(g_profiler_ctx, "Textures::GenerateMipmap");
735 bindTexture(tex_ref, 0);
736 glGenerateMipmap(GL_TEXTURE_2D);
737}
738
739void Textures::setSampleFilter(const TextureRef& tex_ref, enum SampleFilter filter) {
740 bindTexture(tex_ref);

Callers 5

FillTextureFromBGRABlockFunction · 0.80
BakeTerrainTextureMethod · 0.80
DrawRiggedObjectMethod · 0.80
AddWaterCubeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected