mirror of
https://github.com/NoelFB/blah.git
synced 2025-07-15 18:51:53 +08:00
removing redundant framebuffer virtual methods
This commit is contained in:
@ -332,26 +332,6 @@ namespace Blah
|
||||
return m_attachments;
|
||||
}
|
||||
|
||||
virtual TextureRef& attachment(int index) override
|
||||
{
|
||||
return m_attachments[index];
|
||||
}
|
||||
|
||||
virtual const TextureRef& attachment(int index) const override
|
||||
{
|
||||
return m_attachments[index];
|
||||
}
|
||||
|
||||
virtual int width() const override
|
||||
{
|
||||
return m_attachments[0]->width();
|
||||
}
|
||||
|
||||
virtual int height() const override
|
||||
{
|
||||
return m_attachments[0]->height();
|
||||
}
|
||||
|
||||
virtual void clear(Color color, float depth, u8 stencil, ClearMask mask) override
|
||||
{
|
||||
float col[4] = { color.r / 255.0f, color.g / 255.0f, color.b / 255.0f, color.a / 255.0f };
|
||||
|
@ -83,26 +83,6 @@ namespace Blah
|
||||
return m_attachments;
|
||||
}
|
||||
|
||||
virtual TextureRef& attachment(int index) override
|
||||
{
|
||||
return m_attachments[index];
|
||||
}
|
||||
|
||||
virtual const TextureRef& attachment(int index) const override
|
||||
{
|
||||
return m_attachments[index];
|
||||
}
|
||||
|
||||
virtual int width() const override
|
||||
{
|
||||
return m_attachments[0]->width();
|
||||
}
|
||||
|
||||
virtual int height() const override
|
||||
{
|
||||
return m_attachments[0]->height();
|
||||
}
|
||||
|
||||
virtual void clear(Color color) override
|
||||
{
|
||||
|
||||
|
@ -729,26 +729,6 @@ namespace Blah
|
||||
return m_attachments;
|
||||
}
|
||||
|
||||
virtual TextureRef& attachment(int index) override
|
||||
{
|
||||
return m_attachments[index];
|
||||
}
|
||||
|
||||
virtual const TextureRef& attachment(int index) const override
|
||||
{
|
||||
return m_attachments[index];
|
||||
}
|
||||
|
||||
virtual int width() const override
|
||||
{
|
||||
return m_width;
|
||||
}
|
||||
|
||||
virtual int height() const override
|
||||
{
|
||||
return m_height;
|
||||
}
|
||||
|
||||
virtual void clear(Color color, float depth, u8 stencil, ClearMask mask) override
|
||||
{
|
||||
int clear = 0;
|
||||
|
Reference in New Issue
Block a user