fadeout done 🎉
This commit is contained in:
parent
f8e0b0b448
commit
a49bbf4508
12 changed files with 176 additions and 8 deletions
22
src/render/Framebuffer.hpp
Normal file
22
src/render/Framebuffer.hpp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include "../defines.hpp"
|
||||
#include "Texture.hpp"
|
||||
|
||||
class CFramebuffer {
|
||||
public:
|
||||
|
||||
bool alloc(int w, int h);
|
||||
void bind();
|
||||
void release();
|
||||
void reset();
|
||||
|
||||
Vector2D m_Position;
|
||||
Vector2D m_Size;
|
||||
float m_fScale = 1;
|
||||
|
||||
CTexture m_cTex;
|
||||
GLuint m_iFb = -1;
|
||||
|
||||
wl_output_transform m_tTransform; // for saving state
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue