Blender V4.3
GHOST_ContextGLX.cc File Reference
#include "GHOST_ContextGLX.hh"
#include "GHOST_SystemX11.hh"
#include <vector>
#include <cassert>
#include <cstdio>
#include <cstring>

Go to the source code of this file.

Macros

#define USE_GLXEW_INIT_WORKAROUND
 

Functions

static GLuint _glewStrLen (const GLubyte *s)
 
static GLboolean _glewSearchExtension (const char *name, const GLubyte *start, const GLubyte *end)
 
int GHOST_X11_GL_GetAttributes (int *attribs, int attribs_max, bool is_stereo_visual, bool need_alpha, bool for_fb_config)
 
static GLuint _glewStrCLen (const GLubyte *s, GLubyte c)
 
static GLboolean _glewStrSame (const GLubyte *a, const GLubyte *b, GLuint n)
 

Detailed Description

Definition of GHOST_ContextGLX class.

Definition in file GHOST_ContextGLX.cc.

Macro Definition Documentation

◆ USE_GLXEW_INIT_WORKAROUND

#define USE_GLXEW_INIT_WORKAROUND

Definition at line 21 of file GHOST_ContextGLX.cc.

Function Documentation

◆ _glewSearchExtension()

static GLboolean _glewSearchExtension ( const char * name,
const GLubyte * start,
const GLubyte * end )
static

◆ _glewStrCLen()

static GLuint _glewStrCLen ( const GLubyte * s,
GLubyte c )
static

Definition at line 402 of file GHOST_ContextGLX.cc.

Referenced by _glewSearchExtension().

◆ _glewStrLen()

static GLuint _glewStrLen ( const GLubyte * s)
static

◆ _glewStrSame()

static GLboolean _glewStrSame ( const GLubyte * a,
const GLubyte * b,
GLuint n )
static

Definition at line 414 of file GHOST_ContextGLX.cc.

References b.

Referenced by _glewSearchExtension().

◆ 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 340 of file GHOST_ContextGLX.cc.

References GHOST_ASSERT.

Referenced by GHOST_ContextGLX::initializeDrawingContext().