started working with MRT
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "RenderTexture.hpp"
|
||||
|
||||
TSE::GLFW::RenderTexture::RenderTexture(Vector2 v) : buffer(v)
|
||||
TSE::GLFW::RenderTexture::RenderTexture(Vector2 v, uint textureCount) : buffer(v, textureCount)
|
||||
{
|
||||
buffer.AddResizeNotifiable(this);
|
||||
}
|
||||
@@ -30,6 +30,11 @@ TSE::uint TSE::GLFW::RenderTexture::GetTextureId() const
|
||||
return buffer.GetTextureId();
|
||||
}
|
||||
|
||||
TSE::uint TSE::GLFW::RenderTexture::GetTextureId(uint id) const
|
||||
{
|
||||
return buffer.GetTextureId(id);
|
||||
}
|
||||
|
||||
void TSE::GLFW::RenderTexture::Update()
|
||||
{
|
||||
buffer.Update();
|
||||
|
||||
Reference in New Issue
Block a user