Move glx_fbconfig_t to opengl.c
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
e7a8adf2cc
commit
3e7b7bd608
|
@ -166,6 +166,7 @@
|
||||||
#define DOUBLE_TO_XFIXED(value) ((xcb_render_fixed_t) (((double) (value)) * 65536))
|
#define DOUBLE_TO_XFIXED(value) ((xcb_render_fixed_t) (((double) (value)) * 65536))
|
||||||
|
|
||||||
// === Types ===
|
// === Types ===
|
||||||
|
typedef struct glx_fbconfig glx_fbconfig_t;
|
||||||
|
|
||||||
/// Structure representing needed window updates.
|
/// Structure representing needed window updates.
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -276,14 +277,6 @@ typedef void (*f_StringMarkerGREMEDY) (GLsizei len, const void *string);
|
||||||
typedef void (*f_FrameTerminatorGREMEDY) (void);
|
typedef void (*f_FrameTerminatorGREMEDY) (void);
|
||||||
#endif
|
#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.
|
/// @brief Wrapper of a binded GLX texture.
|
||||||
struct _glx_texture {
|
struct _glx_texture {
|
||||||
GLuint texture;
|
GLuint texture;
|
||||||
|
|
|
@ -17,6 +17,14 @@
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <locale.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
|
#ifdef DEBUG_GLX_ERR
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue