fadeout done 🎉

This commit is contained in:
vaxerski
2022-04-05 20:49:15 +02:00
parent f8e0b0b448
commit a49bbf4508
12 changed files with 176 additions and 8 deletions

View File

@@ -5,10 +5,12 @@
#include "../helpers/Color.hpp"
#include <wlr/render/egl.h>
#include <list>
#include <unordered_map>
#include "Shaders.hpp"
#include "Shader.hpp"
#include "Texture.hpp"
#include "Framebuffer.hpp"
inline const float matrixFlip180[] = {
1.0f, 0.0f, 0.0f,
@@ -40,11 +42,18 @@ public:
void renderTexture(const CTexture&, float matrix[9], float a, int round = 0);
void renderBorder(wlr_box*, const CColor&, int thick = 1, int round = 0);
void makeWindowSnapshot(CWindow*);
void renderSnapshot(CWindow**);
void clear(const CColor&);
void scissor(const wlr_box*);
SCurrentRenderData m_RenderData;
GLint m_iCurrentOutputFb = 0;
std::unordered_map<CWindow*, CFramebuffer> m_mWindowFramebuffers;
private:
std::list<GLuint> m_lBuffers;
std::list<GLuint> m_lTextures;