Elevate Engine 1
Loading...
Searching...
No Matches
OpenGLFrameBuffer.h
Go to the documentation of this file.
1#pragma once
3
4namespace Elevate
5{
7 {
8 public:
10
11 void Bind() const override;
12 void Unbind() const override;
13 void BlitFramebufferToScreen(uint32_t screenWidth, uint32_t screenHeight) const override;
14 void Rescale(uint32_t width, uint32_t height) override;
15
16 inline uint32_t GetFrameBufferId() const override { return m_frameBufferId; }
17 private:
18 bool CheckCompleteness() const;
19 const char* GetFramebufferStatusString(uint32_t status) const;
20 private:
21 // IDs
22 uint32_t m_frameBufferId;
23 uint32_t m_renderBufferId;
24 uint32_t m_textureId;
25 };
26}
void Rescale(uint32_t width, uint32_t height) override
void Unbind() const override
void BlitFramebufferToScreen(uint32_t screenWidth, uint32_t screenHeight) const override
uint32_t GetFrameBufferId() const override
std::shared_ptr< Texture > TexturePtr
Definition Texture.h:13