summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-03-14 18:51:06 +0100
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-03-14 19:59:22 +0100
commita5d178b424d55f61bb3502bb9cbc7ea96aee2cd7 (patch)
treeaafe2e279b5d467c4c514af40c32b0122e253f95 /include/vcl
parent04b70c682e2cdc52b144961a83d05fd203de6884 (diff)
Introduce OpenGLContext in vclopengl
Move DummyChart::initOpengl() and DummyChart::initWindow into this class. Change-Id: If3c1bb52cb2819019f0dda626612a164709b17ac
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/OpenGLContext.hxx31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/vcl/OpenGLContext.hxx b/include/vcl/OpenGLContext.hxx
new file mode 100644
index 000000000000..cc7a3e7185fc
--- /dev/null
+++ b/include/vcl/OpenGLContext.hxx
@@ -0,0 +1,31 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef VCL_OPENGL_CONTEXT_HXX
+#define VCL_OPENGL_CONTEXT_HXX
+
+#include <vcl/OpenGLRender.hxx>
+
+class VCL_DLLPUBLIC OpenGLContext
+{
+public:
+ bool init(OpenGLRender& rGLRender);
+ void setWinSize(const Size& rSize);
+
+private:
+ SAL_DLLPRIVATE bool initWindow();
+
+ GLWindow m_aGLWin;
+ boost::scoped_ptr<Window> m_pWindow;
+ boost::scoped_ptr<SystemChildWindow> m_pChildWindow;
+};
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */