common.h: more clean up
Remove more unused stuff. Also removed session::xinerama_scrs, since all the information we need is covered by xinerama_scr_regs. Convert uses of xinerama_scrs to use xinerama_scr_regs. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
15
src/opengl.h
15
src/opengl.h
@@ -26,6 +26,21 @@
|
||||
#include <xcb/render.h>
|
||||
#include <xcb/xcb.h>
|
||||
|
||||
/// Structure containing GLX-dependent data for a compton session.
|
||||
typedef struct glx_session {
|
||||
// === OpenGL related ===
|
||||
/// GLX context.
|
||||
GLXContext context;
|
||||
/// Whether we have GL_ARB_texture_non_power_of_two.
|
||||
bool has_texture_non_power_of_two;
|
||||
/// Current GLX Z value.
|
||||
int z;
|
||||
glx_blur_pass_t blur_passes[MAX_BLUR_PASS];
|
||||
} glx_session_t;
|
||||
|
||||
#define CGLX_SESSION_INIT \
|
||||
{ .context = NULL }
|
||||
|
||||
bool glx_dim_dst(session_t *ps, int dx, int dy, int width, int height, int z,
|
||||
GLfloat factor, const region_t *reg_tgt);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user