|
Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine. GitHub | Vesper Updates | Creator |
#include <OpenGLFramebuffer.h>
Public Member Functions | |
| OpenGLFramebuffer (const FramebufferSpecification &spec) | |
| virtual | ~OpenGLFramebuffer () |
| void | Invalidate () |
| virtual void | Bind () override |
| virtual void | Unbind () override |
| virtual void | Resize (uint32_t width, uint32_t height) override |
| Resizes the framebuffer to the given width and height. | |
| virtual uint32_t | GetColorAttachmentRendererID () const override |
| Returns the renderer ID of the color attachment texture. | |
| virtual const FramebufferSpecification & | GetSpecification () const |
| Returns the specification used to create the framebuffer. | |
| Public Member Functions inherited from Vesper::Framebuffer | |
| ~Framebuffer ()=default | |
Private Attributes | |
| uint32_t | m_RendererID |
| uint32_t | m_ColorAttachment |
| uint32_t | m_DepthAttachment |
| FramebufferSpecification | m_Specification |
Additional Inherited Members | |
| Static Public Member Functions inherited from Vesper::Framebuffer | |
| static Ref< Framebuffer > | Create (const FramebufferSpecification &spec) |
| Creates a framebuffer with the given specification. | |
| Vesper::OpenGLFramebuffer::OpenGLFramebuffer | ( | const FramebufferSpecification & | spec | ) |
References Invalidate(), and m_Specification.
|
virtual |
References m_ColorAttachment, m_DepthAttachment, and m_RendererID.
|
overridevirtual |
Implements Vesper::Framebuffer.
References Vesper::FramebufferSpecification::Height, m_Specification, and Vesper::FramebufferSpecification::Width.
|
inlineoverridevirtual |
Returns the renderer ID of the color attachment texture.
Implements Vesper::Framebuffer.
References m_ColorAttachment.
|
inlinevirtual |
Returns the specification used to create the framebuffer.
Implements Vesper::Framebuffer.
References m_Specification.
| void Vesper::OpenGLFramebuffer::Invalidate | ( | ) |
References m_ColorAttachment, m_DepthAttachment, and m_RendererID.
Referenced by OpenGLFramebuffer(), and Resize().
|
overridevirtual |
Resizes the framebuffer to the given width and height.
Implements Vesper::Framebuffer.
References Vesper::FramebufferSpecification::Height, Invalidate(), m_Specification, and Vesper::FramebufferSpecification::Width.
|
overridevirtual |
Implements Vesper::Framebuffer.
|
private |
Referenced by GetColorAttachmentRendererID(), Invalidate(), and ~OpenGLFramebuffer().
|
private |
Referenced by Invalidate(), and ~OpenGLFramebuffer().
|
private |
Referenced by Invalidate(), and ~OpenGLFramebuffer().
|
private |
Referenced by Bind(), GetSpecification(), OpenGLFramebuffer(), and Resize().