From 3e7b7bd60822fc561303bd1aefcdcdcd413748d5 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 31 Dec 2018 00:38:13 +0000 Subject: [PATCH] Move glx_fbconfig_t to opengl.c Signed-off-by: Yuxuan Shui --- src/common.h | 9 +-------- src/opengl.h | 8 ++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/common.h b/src/common.h index 30fbafd7..09d09803 100644 --- a/src/common.h +++ b/src/common.h @@ -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; diff --git a/src/opengl.h b/src/opengl.h index 06e7d268..13b3a4fd 100644 --- a/src/opengl.h +++ b/src/opengl.h @@ -17,6 +17,14 @@ #include #include +/// @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 /**