Remove backend/gl/glx.h

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2018-12-31 01:53:25 +00:00
parent 61f55f69a6
commit f322bd4a53
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
2 changed files with 1 additions and 55 deletions

View File

@ -9,7 +9,7 @@
* *
*/ */
#include "backend/gl/glx.h" #include <locale.h>
#include <GL/glx.h> #include <GL/glx.h>
#include "backend/backend.h" #include "backend/backend.h"
#include "backend/gl/gl_common.h" #include "backend/gl/gl_common.h"

View File

@ -1,54 +0,0 @@
// SPDX-License-Identifier: MIT
/*
* Compton - a compositor for X11
*
* Based on `xcompmgr` - Copyright (c) 2003, Keith Packard
*
* Copyright (c) 2011-2013, Christopher Jeffrey
* See LICENSE-mit for more information.
*
*/
#pragma once
#include <ctype.h>
#include <locale.h>
#include <GL/gl.h>
#include <GL/glx.h>
#include <assert.h>
#include <stddef.h>
#include "common.h"
#if 0
struct _glx_data;
struct _glx_win_data;
void
glx_destroy(session_t *ps);
bool
glx_reinit(session_t *ps, bool need_render);
void
glx_on_root_change(session_t *ps);
bool
glx_bind_pixmap(session_t *ps, glx_texture_t **pptex, xcb_pixmap_t pixmap,
unsigned width, unsigned height, unsigned depth);
void
glx_release_pixmap(struct _glx_data *, Display *, struct _glx_win_data *);
void glx_paint_pre(session_t *ps, region_t *preg)
__attribute__((nonnull(1, 2)));
/**
* Check if a texture is binded, or is binded to the given pixmap.
*/
static inline bool
glx_tex_binded(const glx_texture_t *ptex, xcb_pixmap_t pixmap) {
return ptex && ptex->glpixmap && ptex->texture
&& (!pixmap || pixmap == ptex->pixmap);
}
#endif