mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
Move glx_fbconfig_t to opengl.c
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
e7a8adf2cc
commit
3e7b7bd608
2 changed files with 9 additions and 8 deletions
|
@ -166,6 +166,7 @@
|
|||
#define DOUBLE_TO_XFIXED(value) ((xcb_render_fixed_t) (((double) (value)) * 65536))
|
||||
|
||||
// === Types ===
|
||||
typedef struct glx_fbconfig glx_fbconfig_t;
|
||||
|
||||
/// Structure representing needed window updates.
|
||||
typedef struct {
|
||||
|
@ -276,14 +277,6 @@ typedef void (*f_StringMarkerGREMEDY) (GLsizei len, const void *string);
|
|||
typedef void (*f_FrameTerminatorGREMEDY) (void);
|
||||
#endif
|
||||
|
||||
/// @brief Wrapper of a GLX FBConfig.
|
||||
typedef struct {
|
||||
GLXFBConfig cfg;
|
||||
GLint texture_fmt;
|
||||
GLint texture_tgts;
|
||||
bool y_inverted;
|
||||
} glx_fbconfig_t;
|
||||
|
||||
/// @brief Wrapper of a binded GLX texture.
|
||||
struct _glx_texture {
|
||||
GLuint texture;
|
||||
|
|
|
@ -17,6 +17,14 @@
|
|||
#include <ctype.h>
|
||||
#include <locale.h>
|
||||
|
||||
/// @brief Wrapper of a GLX FBConfig.
|
||||
typedef struct glx_fbconfig {
|
||||
GLXFBConfig cfg;
|
||||
GLint texture_fmt;
|
||||
GLint texture_tgts;
|
||||
bool y_inverted;
|
||||
} glx_fbconfig_t;
|
||||
|
||||
#ifdef DEBUG_GLX_ERR
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue