mirror of
https://github.com/hyprwm/Hyprland
synced 2025-02-17 03:22:31 +01:00
shader: init uniforms to -1
This commit is contained in:
parent
fbabb105c3
commit
e43f7fc98d
1 changed files with 28 additions and 28 deletions
|
@ -7,41 +7,41 @@ class CShader {
|
||||||
public:
|
public:
|
||||||
~CShader();
|
~CShader();
|
||||||
|
|
||||||
GLuint program = 0;
|
GLuint program = 0;
|
||||||
GLint proj;
|
GLint proj = -1;
|
||||||
GLint color;
|
GLint color = -1;
|
||||||
GLint tex;
|
GLint tex = -1;
|
||||||
GLint alpha;
|
GLint alpha = -1;
|
||||||
GLint posAttrib;
|
GLint posAttrib = -1;
|
||||||
GLint texAttrib;
|
GLint texAttrib = -1;
|
||||||
GLint discardOpaque;
|
GLint discardOpaque = -1;
|
||||||
GLint discardAlpha;
|
GLint discardAlpha = -1;
|
||||||
GLfloat discardAlphaValue;
|
GLfloat discardAlphaValue = -1;
|
||||||
|
|
||||||
GLint topLeft;
|
GLint topLeft = -1;
|
||||||
GLint bottomRight;
|
GLint bottomRight = -1;
|
||||||
GLint fullSize;
|
GLint fullSize = -1;
|
||||||
GLint fullSizeUntransformed;
|
GLint fullSizeUntransformed = -1;
|
||||||
GLint radius;
|
GLint radius = -1;
|
||||||
GLint primitiveMultisample;
|
GLint primitiveMultisample = -1;
|
||||||
|
|
||||||
GLint thick;
|
GLint thick = -1;
|
||||||
|
|
||||||
GLint halfpixel;
|
GLint halfpixel = -1;
|
||||||
|
|
||||||
GLint range;
|
GLint range = -1;
|
||||||
GLint shadowPower;
|
GLint shadowPower = -1;
|
||||||
|
|
||||||
GLint applyTint;
|
GLint applyTint = -1;
|
||||||
GLint tint;
|
GLint tint = -1;
|
||||||
|
|
||||||
GLint gradient;
|
GLint gradient = -1;
|
||||||
GLint gradientLength;
|
GLint gradientLength = -1;
|
||||||
GLint angle;
|
GLint angle = -1;
|
||||||
|
|
||||||
GLint time;
|
GLint time = -1;
|
||||||
GLint distort;
|
GLint distort = -1;
|
||||||
GLint output;
|
GLint output = -1;
|
||||||
|
|
||||||
GLint getUniformLocation(const std::string&);
|
GLint getUniformLocation(const std::string&);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue