split fbo and texture into two separate objects

This commit is contained in:
itsmattkc
2019-08-27 15:36:13 +10:00
parent 46ea071b99
commit 4b5516abb5
14 changed files with 459 additions and 271 deletions
+2 -2
View File
@@ -51,7 +51,7 @@ bool RenderInstance::Start()
return false;
}
buffer_.Create(&ctx_, format_, width_, height_);
buffer_.Create(&ctx_);
return true;
}
@@ -73,7 +73,7 @@ bool RenderInstance::IsStarted()
return buffer_.IsCreated();
}
TextureBuffer *RenderInstance::buffer()
RenderFramebuffer *RenderInstance::buffer()
{
return &buffer_;
}