|
Muto 0.0.1
|
Abstract class representing a framebuffer. More...
#include <Framebuffer.h>
Public Member Functions | |
| virtual void | Bind ()=0 |
| virtual uint32_t | GetColorAttachmentRendererID () const =0 |
| Returns the renderer ID of the color attachment texture. | |
| virtual const FramebufferSpecification & | GetSpecification () const =0 |
| Returns the specification used to create the framebuffer. | |
| virtual void | Resize (uint32_t width, uint32_t height)=0 |
| Resizes the framebuffer to the given width and height. | |
| virtual void | Unbind ()=0 |
| ~Framebuffer ()=default | |
Static Public Member Functions | |
| static Ref< Framebuffer > | Create (const FramebufferSpecification &spec) |
| Creates a framebuffer with the given specification. | |
Abstract class representing a framebuffer.
|
default |
Implemented in Muto::OpenGLFramebuffer.
|
static |
Creates a framebuffer with the given specification.
| spec | The specification for the framebuffer. |
References Muto::Renderer::GetAPI(), Muto::RenderAPI::RAPI_None, and Muto::RenderAPI::RAPI_OpenGL.
Returns the renderer ID of the color attachment texture.
Implemented in Muto::OpenGLFramebuffer.
|
pure virtual |
Returns the specification used to create the framebuffer.
Implemented in Muto::OpenGLFramebuffer.
Resizes the framebuffer to the given width and height.
Implemented in Muto::OpenGLFramebuffer.
Implemented in Muto::OpenGLFramebuffer.