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
Loading...
Searching...
No Matches
OpenGLFramebuffer.h
Go to the documentation of this file.
1#pragma once
2#include "Vesper/Renderer/Framebuffer.h"
3
4
5namespace Vesper {
6
8 {
9 public:
11 virtual ~OpenGLFramebuffer();
12 void Invalidate();
13
14 virtual void Bind() override;
15 virtual void Unbind() override;
16
17 virtual void Resize(uint32_t width, uint32_t height) override;
18
19 virtual uint32_t GetColorAttachmentRendererID() const override { return m_ColorAttachment; }
21
22
23 private:
24 uint32_t m_RendererID;
27 };
28
29}
#define VZ_CORE_ASSERT(x,...)
Definition Asserts.h:20
#define VZ_CORE_WARN(...)
warn: indicates a potential issue or important event
Definition Log.h:39
Abstract class representing a framebuffer.
Definition Framebuffer.h:21
Definition OpenGLFramebuffer.h:8
uint32_t m_DepthAttachment
Definition OpenGLFramebuffer.h:25
uint32_t m_ColorAttachment
Definition OpenGLFramebuffer.h:25
virtual void Resize(uint32_t width, uint32_t height) override
Resizes the framebuffer to the given width and height.
Definition OpenGLFramebuffer.cpp:67
virtual ~OpenGLFramebuffer()
Definition OpenGLFramebuffer.cpp:17
void Invalidate()
Definition OpenGLFramebuffer.cpp:24
virtual const FramebufferSpecification & GetSpecification() const
Returns the specification used to create the framebuffer.
Definition OpenGLFramebuffer.h:20
virtual uint32_t GetColorAttachmentRendererID() const override
Returns the renderer ID of the color attachment texture.
Definition OpenGLFramebuffer.h:19
virtual void Unbind() override
Definition OpenGLFramebuffer.cpp:62
uint32_t m_RendererID
Definition OpenGLFramebuffer.h:24
FramebufferSpecification m_Specification
Definition OpenGLFramebuffer.h:26
virtual void Bind() override
Definition OpenGLFramebuffer.cpp:56
OpenGLFramebuffer(const FramebufferSpecification &spec)
Definition OpenGLFramebuffer.cpp:11
TEMPORARY.
Definition WindowsInput.cpp:7
uint32_t Height
Definition Framebuffer.h:10
uint32_t Width
Definition Framebuffer.h:10
static const uint32_t s_MaxFramebufferSize
TODO: Get the actual maximum size from the GPU!
Definition OpenGLFramebuffer.cpp:9
Specification for creating a Framebuffer.
Definition Framebuffer.h:9