Line data Source code
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 : #ifndef INCLUDED_SVX_INC_SVDOOPENGL_HXX
11 : #define INCLUDED_SVX_INC_SVDOOPENGL_HXX
12 :
13 : #include <svx/svdobj.hxx>
14 : #include <vcl/opengl/OpenGLContext.hxx>
15 :
16 : #include <vcl/opengl/IOpenGLRenderer.hxx>
17 :
18 : #include <boost/scoped_ptr.hpp>
19 :
20 : namespace sdr { namespace contact {
21 : class ViewContact;
22 : } }
23 :
24 : class IOpenGLRenderer;
25 :
26 : class SVX_DLLPUBLIC SdrOpenGLObj : public SdrObject, public IOpenGLInfoProvider
27 : {
28 : public:
29 : SdrOpenGLObj();
30 : virtual ~SdrOpenGLObj();
31 : virtual sdr::contact::ViewContact* CreateObjectSpecificViewContact() SAL_OVERRIDE;
32 :
33 0 : OpenGLContext* getOpenGLContext() { return mpContext;}
34 :
35 : virtual void NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact) SAL_OVERRIDE;
36 :
37 : void setRenderer(IOpenGLRenderer* pRenderer);
38 : IOpenGLRenderer* getRenderer();
39 :
40 : virtual bool isOpenGLInitialized() SAL_OVERRIDE;
41 :
42 : private:
43 :
44 : OpenGLContext* mpContext;
45 :
46 : boost::scoped_ptr<IOpenGLRenderer> mpRenderer;
47 : };
48 :
49 : #endif
50 :
51 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|