Difference between revisions of "Canvas:generateMipmaps"

(Created page)
 
m
 
Line 2: Line 2:
 
Generates mipmaps for the Canvas, based on the contents of the highest-resolution mipmap level.
 
Generates mipmaps for the Canvas, based on the contents of the highest-resolution mipmap level.
  
The Canvas must be [[love.graphics.newCanvas|created]] with mipmaps set to a [[MipmapMode]] other than "none" for this function to work.
+
The Canvas must be [[love.graphics.newCanvas|created]] with mipmaps set to a [[MipmapMode]] other than "none" for this function to work. It should only be called while the Canvas is not the active render target.
  
 
If the mipmap mode is set to "auto", this function is automatically called inside [[love.graphics.setCanvas]] when switching from this Canvas to another Canvas or to the main screen.
 
If the mipmap mode is set to "auto", this function is automatically called inside [[love.graphics.setCanvas]] when switching from this Canvas to another Canvas or to the main screen.

Latest revision as of 23:16, 28 May 2019

Available since LÖVE 11.0
This function is not supported in earlier versions.

Generates mipmaps for the Canvas, based on the contents of the highest-resolution mipmap level.

The Canvas must be created with mipmaps set to a MipmapMode other than "none" for this function to work. It should only be called while the Canvas is not the active render target.

If the mipmap mode is set to "auto", this function is automatically called inside love.graphics.setCanvas when switching from this Canvas to another Canvas or to the main screen.

Function

Synopsis

Canvas:generateMipmaps( )

Arguments

None.

Returns

Nothing.

See Also

Other Languages