mirror of
https://github.com/luanti-org/luanti.git
synced 2025-12-19 13:25:47 +01:00
Irrlicht: expose MaxArrayTextureLayers
This commit is contained in:
@@ -1688,10 +1688,13 @@ ITexture *COpenGL3DriverBase::addRenderTargetTextureCubemap(const u32 sideLen, c
|
||||
return renderTargetTexture;
|
||||
}
|
||||
|
||||
//! Returns the maximum amount of primitives
|
||||
u32 COpenGL3DriverBase::getMaximalPrimitiveCount() const
|
||||
SDriverLimits COpenGL3DriverBase::getLimits() const
|
||||
{
|
||||
return Version.Spec == OpenGLSpec::ES ? 65535 : 0x7fffffff;
|
||||
SDriverLimits ret;
|
||||
ret.MaxPrimitiveCount = Version.Spec == OpenGLSpec::ES ? UINT16_MAX : INT32_MAX;
|
||||
ret.MaxTextureSize = MaxTextureSize;
|
||||
ret.MaxArrayTextureImages = MaxArrayTextureLayers;
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool COpenGL3DriverBase::setRenderTargetEx(IRenderTarget *target, u16 clearFlag, SColor clearColor, f32 clearDepth, u8 clearStencil)
|
||||
@@ -1864,11 +1867,6 @@ void COpenGL3DriverBase::removeTexture(ITexture *texture)
|
||||
CNullDriver::removeTexture(texture);
|
||||
}
|
||||
|
||||
core::dimension2du COpenGL3DriverBase::getMaxTextureSize() const
|
||||
{
|
||||
return core::dimension2du(MaxTextureSize, MaxTextureSize);
|
||||
}
|
||||
|
||||
GLenum COpenGL3DriverBase::getGLBlend(E_BLEND_FACTOR factor) const
|
||||
{
|
||||
static GLenum const blendTable[] = {
|
||||
|
||||
@@ -135,9 +135,6 @@ public:
|
||||
//! Returns the name of the video driver.
|
||||
const char *getName() const override;
|
||||
|
||||
//! Returns the maximum texture size supported.
|
||||
core::dimension2du getMaxTextureSize() const override;
|
||||
|
||||
//! sets a viewport
|
||||
void setViewPort(const core::rect<s32> &area) override;
|
||||
|
||||
@@ -202,8 +199,7 @@ public:
|
||||
//! Returns a pointer to the IVideoDriver interface.
|
||||
IVideoDriver *getVideoDriver() override;
|
||||
|
||||
//! Returns the maximum amount of primitives
|
||||
u32 getMaximalPrimitiveCount() const override;
|
||||
SDriverLimits getLimits() const override;
|
||||
|
||||
virtual ITexture *addRenderTargetTexture(const core::dimension2d<u32> &size,
|
||||
const io::path &name, const ECOLOR_FORMAT format = ECF_UNKNOWN) override;
|
||||
|
||||
Reference in New Issue
Block a user