From 19d946504239e3df1b8afb26d2053fb80dfff19e Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 5 Apr 2022 14:33:54 +0200 Subject: Rendering textures --- src/render/OpenGL.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/render/OpenGL.hpp') diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index dd380658..c3e1b987 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -8,6 +8,7 @@ #include "Shaders.hpp" #include "Shader.hpp" +#include "Texture.hpp" inline const float matrixFlip180[] = { 1.0f, 0.0f, 0.0f, @@ -35,6 +36,8 @@ public: void end(); void renderRect(wlr_box*, const CColor&); + void renderTexture(wlr_texture*, float matrix[9], float a); + void renderTexture(const CTexture&, float matrix[9], float a); void clear(const CColor&); void scissor(const wlr_box*); -- cgit v1.2.3