mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
IrrlichtMt: Implement mip-mapping for RTTs (#16434)
This can be helpful to draw fonts memory-efficiently at varying scales. Adds ETCF_CREATE_RTT_MIP_MAPS to generate mip-maps on request.
This commit is contained in:
parent
e86d2fea8d
commit
024e1d2d27
5 changed files with 43 additions and 44 deletions
|
@ -66,6 +66,11 @@ enum E_TEXTURE_CREATION_FLAG
|
|||
not recommended to enable this flag. */
|
||||
ETCF_NO_ALPHA_CHANNEL = 0x00000020,
|
||||
|
||||
/** Creates Render Target Textures with mipmap levels.
|
||||
See also: `ETCF_CREATE_MIP_MAPS` for other textures.
|
||||
This is disabled by default. */
|
||||
ETCF_CREATE_RTT_MIP_MAPS = 0x00000040,
|
||||
|
||||
//! Allow the driver to keep a copy of the texture in memory
|
||||
/** Enabling this makes calls to ITexture::lock a lot faster, but costs main memory.
|
||||
This is disabled by default.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue