Banuba SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
platform
desktop
player_api
bnb
player_api
opengl
opengl.hpp
1
#pragma once
2
3
#include <bnb/utils/defs.hpp>
4
5
#if BNB_OS_ANDROID
6
#include <GLES3/gl3.h>
7
#else
// other platforms
8
#include <gl_init.h>
9
#endif
// BNB_OS_ANDROID
10
11
void
__print_opengl_errors(
const
char
* file,
int
line);
12
13
#if defined(_DEBUG) || defined(DEBUG) || true
14
#define GL_CHECK_ERROR() \
15
do { \
16
__print_opengl_errors(__FILE__, __LINE__); \
17
} while (0)
18
#else
19
#define GL_CHECK_ERROR() ((void) 0)
20
#endif
21
#define GL_CALL(FUNC) \
22
do { \
23
FUNC; \
24
GL_CHECK_ERROR(); \
25
} while (0)
Generated by
1.17.0