1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-30 20:53:45 +01:00

Irrlicht: expose MaxArrayTextureLayers

This commit is contained in:
sfan5
2025-10-08 16:56:26 +02:00
parent 0794912374
commit 3c60b348a6
7 changed files with 37 additions and 52 deletions

View File

@@ -837,18 +837,18 @@ void CNullDriver::makeColorKeyTexture(video::ITexture *texture,
makeColorKeyTexture(texture, colorKey);
}
//! Returns the maximum amount of primitives (mostly vertices) which
//! the device is able to render with one drawIndexedTriangleList
//! call.
u32 CNullDriver::getMaximalPrimitiveCount() const
SDriverLimits CNullDriver::getLimits() const
{
return 0xFFFFFFFF;
SDriverLimits ret;
ret.MaxPrimitiveCount = 0xFFFFFFFF;
ret.MaxTextureSize = 0x10000; // maybe large enough
return ret;
}
//! checks triangle count and print warning if wrong
bool CNullDriver::checkPrimitiveCount(u32 prmCount) const
{
const u32 m = getMaximalPrimitiveCount();
const u32 m = getLimits().MaxPrimitiveCount;
if (prmCount > m) {
char tmp[128];
@@ -1732,11 +1732,6 @@ void CNullDriver::enableMaterial2D(bool enable)
OverrideMaterial2DEnabled = enable;
}
core::dimension2du CNullDriver::getMaxTextureSize() const
{
return core::dimension2du(0x10000, 0x10000); // maybe large enough
}
bool CNullDriver::needsTransparentRenderPass(const video::SMaterial &material) const
{
// TODO: I suspect it would be nice if the material had an enum for further control.