summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-05 14:33:54 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-05 14:33:54 +0200
commit19d946504239e3df1b8afb26d2053fb80dfff19e (patch)
treedf6bfa779d887b43824e519b82702b512e8d1c13 /src/render/OpenGL.hpp
parent67343898ff881bbbc767025a033005f45db32a09 (diff)
Rendering textures
Diffstat (limited to 'src/render/OpenGL.hpp')
-rw-r--r--src/render/OpenGL.hpp3
1 files changed, 3 insertions, 0 deletions
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*);