mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 01:45:36 +02: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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user