Add explanation and enforce non-instantiability

Change-Id: I3ea699dcda21b695a486c86d7f7b7a8abc2a8fbe
This commit is contained in:
Tor Lillqvist
2015-09-04 16:51:26 +03:00
parent 0590fe942a
commit 20f1ba114c
2 changed files with 8 additions and 4 deletions

View File

@@ -34,9 +34,11 @@
} \
} while (false)
class VCL_DLLPUBLIC OpenGLHelper
// All member functions static and VCL_DLLPUBLIC. Basically a glorified namespace.
struct VCL_DLLPUBLIC OpenGLHelper
{
public:
OpenGLHelper() SAL_DELETED_FUNCTION; // Should not be instantiated
static GLint LoadShaders(const OUString& rVertexShaderName, const OUString& rFragmentShaderName, const OString& preamble = "" );
/**

View File

@@ -14,9 +14,11 @@
#include <vcl/dllapi.h>
class VCL_DLLPUBLIC OpenGLWrapper
// All member functions static and VCL_DLLPUBLIC. Basically a glorified namespace.
struct VCL_DLLPUBLIC OpenGLWrapper
{
public:
OpenGLWrapper() SAL_DELETED_FUNCTION; // Should not be instantiated
/**
* Returns true if VCL has OpenGL rendering enabled
*/