Blender V5.0
GHOST_ContextEGL.cc File Reference
#include "GHOST_ContextEGL.hh"
#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)

Functions

static const char * get_egl_error_enum_string (EGLint error)
static const char * get_egl_error_message_string (EGLint error)
static void egl_print_error (const char *message, const EGLint error)
static bool egl_chk (bool result, const char *file=nullptr, int line=0, const char *text=nullptr)
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.cc.

Macro Definition Documentation

◆ CASE_CODE_RETURN_STR

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

Definition at line 21 of file GHOST_ContextEGL.cc.

Referenced by get_egl_error_enum_string().

◆ EGL_CHK

#define EGL_CHK ( x)

Function Documentation

◆ api_string()

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

Definition at line 324 of file GHOST_ContextEGL.cc.

References b, and choose_api().

Referenced by GHOST_ContextEGL::initializeDrawingContext().

◆ choose_api()

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

Definition at line 175 of file GHOST_ContextEGL.cc.

References b, and T.

Referenced by api_string(), and GHOST_ContextEGL::GHOST_ContextEGL().

◆ egl_chk()

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

◆ egl_print_error()

void egl_print_error ( const char * message,
const EGLint error )
static

◆ get_egl_error_enum_string()

const char * get_egl_error_enum_string ( EGLint error)
static

Definition at line 25 of file GHOST_ContextEGL.cc.

References CASE_CODE_RETURN_STR, and error().

Referenced by egl_chk(), and egl_print_error().

◆ get_egl_error_message_string()

const char * get_egl_error_message_string ( EGLint error)
static

Definition at line 48 of file GHOST_ContextEGL.cc.

References error().

Referenced by egl_chk(), and egl_print_error().