Removed useless functions

This commit is contained in:
Elderme
2016-01-07 22:11:14 +01:00
parent e58a45441b
commit 76453afc49
4 changed files with 2 additions and 24 deletions

View File

@@ -56,7 +56,6 @@ public:
virtual ~AbstractRenderer(){}
RTT* getRTT() { return m_rtts;} //FIXME: remove this
void setRTT(RTT *rtts) { m_rtts = rtts; } //FIXME: remove this
virtual void onLoadWorld() = 0;
virtual void onUnloadWorld() = 0;
@@ -79,19 +78,6 @@ public:
virtual void render(float dt) = 0;
virtual void renderScene(irr::scene::ICameraSceneNode * const camnode,
float dt, bool hasShadows, bool forceRTT) = 0;
virtual void updateLightsInfo(irr::scene::ICameraSceneNode * const camnode,
float dt) = 0;
virtual void uploadLightingData() const {}
virtual void computeMatrixesAndCameras(irr::scene::ICameraSceneNode * const camnode,
size_t width, size_t height) {}
virtual void resetShadowCamNodes() {}
// ------------------------------------------------------------------------
const irr::core::vector2df &getCurrentScreenSize() const

View File

@@ -1771,12 +1771,7 @@ video::ITexture* IrrDriver::applyMask(video::ITexture* texture,
mask->drop();
return t;
} // applyMask
// ----------------------------------------------------------------------------
void IrrDriver::setRTT(RTT* rtt)
{
m_renderer->resetShadowCamNodes();
m_renderer->setRTT(rtt); //FIXME
}
// ----------------------------------------------------------------------------
void IrrDriver::onLoadWorld()
{

View File

@@ -368,8 +368,6 @@ public:
return m_texture_error_message;
} // getTextureErrorMessage
// ------------------------------------------------------------------------
AbstractRenderer* getRenderer() { return m_renderer; }
// ------------------------------------------------------------------------
/** Returns a list of all video modes supports by the graphics card. */
const std::vector<VideoMode>& getVideoModes() const { return m_modes; }
@@ -623,7 +621,6 @@ public:
} // addDebugMesh
#endif
void setRTT(RTT* rtt); //FIXME
void onLoadWorld();
void onUnloadWorld();

View File

@@ -61,7 +61,7 @@ private:
void updateLightsInfo(irr::scene::ICameraSceneNode * const camnode,
float dt);
void uploadLightingData() const override;
void uploadLightingData() const;
void computeMatrixesAndCameras(scene::ICameraSceneNode * const camnode,
size_t width, size_t height);