mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
Cleanup of rendering code for images, there's functions not needed anymore
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
parent
e377960a87
commit
082af30c63
@ -293,24 +293,6 @@ void CImage::pinpongFramebuffer (CFBO** drawTo, ITexture** asInput)
|
||||
this->m_currentSubFBO = currentMainFBO;
|
||||
}
|
||||
|
||||
void CImage::simpleRender ()
|
||||
{
|
||||
ITexture* input = this->getTexture ();
|
||||
|
||||
// a simple material renders directly to the screen
|
||||
auto cur = this->m_material->getPasses ().begin ();
|
||||
auto end = this->m_material->getPasses ().end ();
|
||||
|
||||
glColorMask (true, true, true, false);
|
||||
|
||||
for (; cur != end; cur ++)
|
||||
(*cur)->render (this->getScene ()->getFBO (), input, *this->getSceneSpacePosition (), *this->getTexCoordPass (), this->m_modelViewProjectionScreen);
|
||||
}
|
||||
|
||||
void CImage::complexRender ()
|
||||
{
|
||||
}
|
||||
|
||||
void CImage::render ()
|
||||
{
|
||||
// do not try to render something that did not initialize successfully
|
||||
|
@ -59,9 +59,6 @@ namespace WallpaperEngine::Render::Objects
|
||||
|
||||
protected:
|
||||
static const std::string Type;
|
||||
|
||||
void simpleRender ();
|
||||
void complexRender ();
|
||||
private:
|
||||
ITexture* m_texture;
|
||||
GLuint m_sceneSpacePosition;
|
||||
|
Loading…
Reference in New Issue
Block a user