mirror of
https://github.com/NoelFB/blah.git
synced 2026-10-19 19:09:23 +08:00
removing redundant framebuffer virtual methods
This commit is contained in:
1 parent
bd9736df03
commit
94f25cea88
14 files changed
+32
-84
No files matched your search
@@ -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