LibreOffice Module vcl (master)  1
Classes | Macros
OpenGLHelper.hxx File Reference
#include <epoxy/gl.h>
#include <sal/detail/log.h>
#include <vcl/dllapi.h>
#include <vcl/bitmapex.hxx>
#include <rtl/ustring.hxx>
#include <sstream>
#include <string_view>
Include dependency graph for OpenGLHelper.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  OpenGLHelper
 

Macros

#define VCL_GL_INFO(stream)
 Helper to do a SAL_INFO as well as a GL log. More...
 
#define VCL_GL_WARN(stream)
 Helper to do a SAL_WARN as well as a GL log. More...
 
#define CHECK_GL_ERROR()   do { } while (false)
 

Macro Definition Documentation

#define CHECK_GL_ERROR ( )    do { } while (false)
#define VCL_GL_INFO (   stream)
Value:
do { \
if (SAL_DETAIL_ENABLE_LOG_INFO) \
{ \
::std::ostringstream detail_stream; \
detail_stream << stream; \
OpenGLHelper::debugMsgStream(detail_stream); \
} \
} while (false)
Reference< XOutputStream > stream

Helper to do a SAL_INFO as well as a GL log.

Definition at line 23 of file OpenGLHelper.hxx.

Referenced by PaintHelper::DoPaint(), OpenGLContext::ImplInit(), OpenGLContext::InitGL(), OpenGLContext::InitGLDebugging(), OpenGLHelper::LoadShaders(), OpenGLContext::OpenGLContext(), OpenGLContext::registerAsCurrent(), and OpenGLContext::~OpenGLContext().

#define VCL_GL_WARN (   stream)
Value:
do { \
if (SAL_DETAIL_ENABLE_LOG_INFO) \
{ \
::std::ostringstream detail_stream; \
detail_stream << stream; \
OpenGLHelper::debugMsgStreamWarn(detail_stream); \
} \
} while (false)
Reference< XOutputStream > stream

Helper to do a SAL_WARN as well as a GL log.

Definition at line 34 of file OpenGLHelper.hxx.