1
0
Fork 0
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:
SmallJoker 2025-09-04 18:58:23 +02:00 committed by GitHub
parent e86d2fea8d
commit 024e1d2d27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 43 additions and 44 deletions

View file

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