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 <vcl/dllapi.h>
16 
17 // All member functions static and VCL_DLLPUBLIC. Basically a glorified namespace.
19 {
20  OpenGLWrapper() = delete; // Should not be instantiated
21 
25 #ifdef LIBO_HEADLESS
26  static bool isVCLOpenGLEnabled()
27  {
28  return false;
29  }
30 #else
31  static bool isVCLOpenGLEnabled();
32 
36  static sal_Int64 getBufferSwapCounter();
37 #endif
38 };
39 
40 #endif // INCLUDED_VCL_OPENGL_OPENGLWRAPPER_HXX
#define VCL_DLLPUBLIC
Definition: dllapi.h:29