Blender  V2.93
Macros | Functions
GHOST_ContextEGL.cpp File Reference
#include "GHOST_ContextEGL.h"
#include <set>
#include <sstream>
#include <vector>
#include <cassert>
#include <cstdio>
#include <cstring>

Go to the source code of this file.

Macros

#define CASE_CODE_RETURN_STR(code)
 
#define EGL_CHK(x)   egl_chk((x), __FILE__, __LINE__, # x)
 

Functions

static const char * get_egl_error_enum_string (EGLint error)
 
static const char * get_egl_error_message_string (EGLint error)
 
static bool egl_chk (bool result, const char *file=NULL, int line=0, const char *text=NULL)
 
static bool bindAPI (EGLenum api)
 
template<typename T >
Tchoose_api (EGLenum api, T &a, T &b, T &c)
 
static const std::string & api_string (EGLenum api)
 

Detailed Description

Definition of GHOST_ContextEGL class.

Definition in file GHOST_ContextEGL.cpp.

Macro Definition Documentation

◆ CASE_CODE_RETURN_STR

#define CASE_CODE_RETURN_STR (   code)
Value:
case code: \
return #code;

Definition at line 36 of file GHOST_ContextEGL.cpp.

◆ EGL_CHK

#define EGL_CHK (   x)    egl_chk((x), __FILE__, __LINE__, # x)

Definition at line 159 of file GHOST_ContextEGL.cpp.

Function Documentation

◆ api_string()

static const std::string& api_string ( EGLenum  api)
static

◆ bindAPI()

static bool bindAPI ( EGLenum  api)
inlinestatic

◆ choose_api()

template<typename T >
T& choose_api ( EGLenum  api,
T a,
T b,
T c 
)

Definition at line 188 of file GHOST_ContextEGL.cpp.

References Freestyle::a, and Freestyle::c.

Referenced by api_string().

◆ egl_chk()

static bool egl_chk ( bool  result,
const char *  file = NULL,
int  line = 0,
const char *  text = NULL 
)
static

◆ get_egl_error_enum_string()

static const char* get_egl_error_enum_string ( EGLint  error)
static

Definition at line 40 of file GHOST_ContextEGL.cpp.

References CASE_CODE_RETURN_STR, error(), and NULL.

Referenced by egl_chk().

◆ get_egl_error_message_string()

static const char* get_egl_error_message_string ( EGLint  error)
static

Definition at line 63 of file GHOST_ContextEGL.cpp.

References error(), and NULL.

Referenced by egl_chk().