Blender  V3.3
Classes | Macros | Functions
GHOST_ContextGLX.h File Reference
#include "GHOST_Context.h"
#include <GL/glxew.h>

Go to the source code of this file.

Classes

class  GHOST_ContextGLX
 

Macros

#define GHOST_OPENGL_GLX_CONTEXT_FLAGS   0
 
#define GHOST_OPENGL_GLX_RESET_NOTIFICATION_STRATEGY   0
 

Functions

int GHOST_X11_GL_GetAttributes (int *attribs, int attribs_max, bool is_stereo_visual, bool need_alpha, bool for_fb_config)
 

Macro Definition Documentation

◆ GHOST_OPENGL_GLX_CONTEXT_FLAGS

#define GHOST_OPENGL_GLX_CONTEXT_FLAGS   0

Definition at line 16 of file GHOST_ContextGLX.h.

◆ GHOST_OPENGL_GLX_RESET_NOTIFICATION_STRATEGY

#define GHOST_OPENGL_GLX_RESET_NOTIFICATION_STRATEGY   0

Definition at line 20 of file GHOST_ContextGLX.h.

Function Documentation

◆ GHOST_X11_GL_GetAttributes()

int GHOST_X11_GL_GetAttributes ( int *  attribs,
int  attribs_max,
bool  is_stereo_visual,
bool  need_alpha,
bool  for_fb_config 
)

Utility function to get GLX attributes.

Parameters
for_fb_configThere are some small differences in #glXChooseVisual and #glXChooseFBConfig's attribute encoding.
Note
Similar to SDL's 'X11_GL_GetAttributes'

Definition at line 350 of file GHOST_ContextGLX.cpp.

References GHOST_ASSERT, and void.

Referenced by GHOST_ContextGLX::initializeDrawingContext(), and x11_visualinfo_from_glx().