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 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 && OpenGLHelper::isVCLOpenGLEnabled()) \
{ \
::std::ostringstream detail_stream; \
detail_stream << stream; \
OpenGLHelper::debugMsgStream(detail_stream); \
} \
} while (false)
tools::SvRef< SotStorageStream > stream
static bool isVCLOpenGLEnabled()
Returns true if VCL has OpenGL rendering enabled.

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

Definition at line 22 of file OpenGLHelper.hxx.

Referenced by GenericCapabilityState< GL_STENCIL_TEST, StencilState >::checkState(), GenericCapabilityState< GL_STENCIL_TEST, StencilState >::disable(), PaintHelper::DoPaint(), GenericCapabilityState< GL_STENCIL_TEST, StencilState >::enable(), OpenGLContext::ImplInit(), OpenGLContext::InitGL(), OpenGLContext::InitGLDebugging(), OpenGLHelper::LoadShaders(), OpenGLContext::OpenGLContext(), OpenGLContext::registerAsCurrent(), RenderState::sync(), OpenGLContext::UseProgram(), and OpenGLContext::~OpenGLContext().

#define VCL_GL_WARN (   stream)
Value:
do { \
if (SAL_DETAIL_ENABLE_LOG_INFO && OpenGLHelper::isVCLOpenGLEnabled()) \
{ \
::std::ostringstream detail_stream; \
detail_stream << stream; \
OpenGLHelper::debugMsgStreamWarn(detail_stream); \
} \
} while (false)
tools::SvRef< SotStorageStream > stream
static bool isVCLOpenGLEnabled()
Returns true if VCL has OpenGL rendering enabled.

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

Definition at line 33 of file OpenGLHelper.hxx.