LibreOffice Module vcl (master)  1
OpenGLWrapper.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 // Fully wrapped methods that have no exotic GL header deps.
11 
12 #ifndef INCLUDED_VCL_OPENGL_OPENGLWRAPPER_HXX
13 #define INCLUDED_VCL_OPENGL_OPENGLWRAPPER_HXX
14 
15 #include <config_features.h>
16 #include <vcl/dllapi.h>
17 
18 // All member functions static and VCL_DLLPUBLIC. Basically a glorified namespace.
20 {
21  OpenGLWrapper() = delete; // Should not be instantiated
22 
26 #if HAVE_FEATURE_UI
27  static bool isVCLOpenGLEnabled();
28 
32  static sal_Int64 getBufferSwapCounter();
33 #else
34  static bool isVCLOpenGLEnabled()
35  {
36  return false;
37  }
38 #endif
39 };
40 
41 #endif // INCLUDED_VCL_OPENGL_OPENGLWRAPPER_HXX
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
static bool isVCLOpenGLEnabled()
Returns true if VCL has OpenGL rendering enabled.