Files
STM32F4-Base/Lib/lvgl/src/drivers/glfw/lv_opengles_debug.h
T
2026-08-30 08:57:07 +08:00

41 lines
648 B
C

/**
* @file lv_opengles_debug.h
*
*/
#ifndef LV_OPENGLES_DEBUG_H
#define LV_OPENGLES_DEBUG_H
#ifdef __cplusplus
extern "C" {
#endif
#include "../../lv_conf_internal.h"
#if LV_USE_OPENGLES
#include <stdbool.h>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
void GLClearError(void);
void GLLogCall(const char * function, const char * file, int line);
#if LV_USE_OPENGLES_DEBUG
#define GL_CALL(x) do {\
GLClearError();\
x;\
GLLogCall(#x, __FILE__, __LINE__);\
} while(0)
#else
#define GL_CALL(x) x
#endif
#endif /* LV_USE_OPENGLES */
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* LV_OPENGLES_DEBUG_H */