mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-05 17:45:59 +01:00
39 lines
No EOL
615 B
C++
39 lines
No EOL
615 B
C++
#pragma once
|
|
|
|
#include "../defines.hpp"
|
|
#include <unordered_map>
|
|
|
|
class CShader {
|
|
public:
|
|
~CShader();
|
|
|
|
GLuint program = 0;
|
|
GLint proj;
|
|
GLint color;
|
|
GLint tex;
|
|
GLint alpha;
|
|
GLint posAttrib;
|
|
GLint texAttrib;
|
|
GLint discardOpaque;
|
|
|
|
GLint topLeft;
|
|
GLint bottomRight;
|
|
GLint fullSize;
|
|
GLint radius;
|
|
GLint primitiveMultisample;
|
|
|
|
GLint thick;
|
|
|
|
GLint halfpixel;
|
|
|
|
GLint range;
|
|
GLint shadowPower;
|
|
|
|
GLint applyTint;
|
|
GLint tint;
|
|
|
|
GLint getUniformLocation(const std::string&);
|
|
|
|
private:
|
|
std::unordered_map<std::string, GLint> m_muUniforms;
|
|
}; |