mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-02 00:00:26 +02:00
Remove more dead code (#108)
This commit is contained in:
@ -81,8 +81,6 @@ COGLES2Driver::COGLES2Driver(const SIrrlichtCreationParameters& params, io::IFil
|
||||
|
||||
COGLES2Driver::~COGLES2Driver()
|
||||
{
|
||||
RequestedLights.clear();
|
||||
|
||||
deleteMaterialRenders();
|
||||
|
||||
CacheHandler->getTextureCache().clear();
|
||||
@ -2007,46 +2005,6 @@ COGLES2Driver::~COGLES2Driver()
|
||||
return Name.c_str();
|
||||
}
|
||||
|
||||
|
||||
//! deletes all dynamic lights there are
|
||||
void COGLES2Driver::deleteAllDynamicLights()
|
||||
{
|
||||
RequestedLights.clear();
|
||||
CNullDriver::deleteAllDynamicLights();
|
||||
}
|
||||
|
||||
|
||||
//! adds a dynamic light
|
||||
s32 COGLES2Driver::addDynamicLight(const SLight& light)
|
||||
{
|
||||
CNullDriver::addDynamicLight(light);
|
||||
|
||||
RequestedLights.push_back(RequestedLight(light));
|
||||
|
||||
u32 newLightIndex = RequestedLights.size() - 1;
|
||||
|
||||
return (s32)newLightIndex;
|
||||
}
|
||||
|
||||
//! Turns a dynamic light on or off
|
||||
//! \param lightIndex: the index returned by addDynamicLight
|
||||
//! \param turnOn: true to turn the light on, false to turn it off
|
||||
void COGLES2Driver::turnLightOn(s32 lightIndex, bool turnOn)
|
||||
{
|
||||
if (lightIndex < 0 || lightIndex >= (s32)RequestedLights.size())
|
||||
return;
|
||||
|
||||
RequestedLight & requestedLight = RequestedLights[lightIndex];
|
||||
requestedLight.DesireToBeOn = turnOn;
|
||||
}
|
||||
|
||||
|
||||
//! returns the maximal amount of dynamic lights the device can handle
|
||||
u32 COGLES2Driver::getMaximalDynamicLightAmount() const
|
||||
{
|
||||
return 8;
|
||||
}
|
||||
|
||||
void COGLES2Driver::setViewPort(const core::rect<s32>& area)
|
||||
{
|
||||
core::rect<s32> vp = area;
|
||||
|
Reference in New Issue
Block a user