new glx: implement dim

Also removed a bunch of unused functions and macros. Fixed a memory leak
of gl_texture::refcount.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-03-10 02:25:41 +00:00
parent a72fb0c755
commit 5f22b4b31c
3 changed files with 24 additions and 70 deletions

View File

@@ -20,6 +20,7 @@ typedef struct {
GLint unifm_opacity;
GLint unifm_invert_color;
GLint unifm_tex;
GLint unifm_dim;
} gl_win_shader_t;
// Program and uniforms for blur shader
@@ -33,6 +34,7 @@ typedef struct {
/// @brief Wrapper of a binded GLX texture.
typedef struct gl_texture {
double opacity;
double dim;
int *refcount;
GLuint texture;
GLenum target;