Hyprland/src/render/Shader.hpp

39 lines
615 B
C++
Raw Normal View History

2022-04-04 19:44:25 +02:00
#pragma once
#include "../defines.hpp"
#include <unordered_map>
2022-04-04 19:44:25 +02:00
class CShader {
public:
2022-08-11 20:33:35 +02:00
~CShader();
GLuint program = 0;
2022-04-04 19:44:25 +02:00
GLint proj;
GLint color;
2022-04-04 19:44:25 +02:00
GLint tex;
GLint alpha;
GLint posAttrib;
GLint texAttrib;
2022-04-17 13:15:56 +02:00
GLint discardOpaque;
2022-07-29 17:07:33 +02:00
GLint topLeft;
GLint bottomRight;
GLint fullSize;
GLint radius;
GLint primitiveMultisample;
GLint thick;
GLint halfpixel;
GLint range;
GLint shadowPower;
2022-08-30 12:46:17 +02:00
GLint applyTint;
GLint tint;
GLint getUniformLocation(const std::string&);
private:
std::unordered_map<std::string, GLint> m_muUniforms;
2022-04-04 19:44:25 +02:00
};