2014-03-17 22:03:14 +01:00
|
|
|
/* -*- 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/.
|
|
|
|
*/
|
|
|
|
|
2014-05-15 12:06:32 +02:00
|
|
|
#ifndef INCLUDED_SVX_INC_SVDOOPENGL_HXX
|
|
|
|
#define INCLUDED_SVX_INC_SVDOOPENGL_HXX
|
2014-03-17 22:03:14 +01:00
|
|
|
|
|
|
|
#include <svx/svdobj.hxx>
|
2014-04-15 00:43:50 +02:00
|
|
|
#include <vcl/opengl/OpenGLContext.hxx>
|
2014-03-17 22:03:14 +01:00
|
|
|
|
2014-04-15 00:43:50 +02:00
|
|
|
#include <vcl/opengl/IOpenGLRenderer.hxx>
|
2014-04-14 02:02:39 +02:00
|
|
|
|
|
|
|
#include <boost/scoped_ptr.hpp>
|
|
|
|
|
2014-04-02 04:09:43 +02:00
|
|
|
namespace sdr { namespace contact {
|
|
|
|
class ViewContact;
|
|
|
|
} }
|
|
|
|
|
2014-04-14 02:02:39 +02:00
|
|
|
class IOpenGLRenderer;
|
|
|
|
|
2014-04-15 00:27:25 +02:00
|
|
|
class SVX_DLLPUBLIC SdrOpenGLObj : public SdrObject, public IOpenGLInfoProvider
|
2014-03-17 22:03:14 +01:00
|
|
|
{
|
|
|
|
public:
|
2014-04-16 15:21:30 +02:00
|
|
|
SdrOpenGLObj();
|
2014-04-14 02:02:39 +02:00
|
|
|
virtual ~SdrOpenGLObj();
|
2014-04-02 04:09:43 +02:00
|
|
|
virtual sdr::contact::ViewContact* CreateObjectSpecificViewContact() SAL_OVERRIDE;
|
|
|
|
|
2014-06-09 10:09:42 +02:00
|
|
|
OpenGLContext* getOpenGLContext() { return mpContext;}
|
2014-04-02 04:09:43 +02:00
|
|
|
|
2014-10-23 17:41:47 +02:00
|
|
|
virtual void NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact) SAL_OVERRIDE;
|
2014-04-02 03:42:03 +02:00
|
|
|
|
2014-04-14 02:02:39 +02:00
|
|
|
void setRenderer(IOpenGLRenderer* pRenderer);
|
|
|
|
IOpenGLRenderer* getRenderer();
|
|
|
|
|
2014-04-15 08:45:29 +03:00
|
|
|
virtual bool isOpenGLInitialized() SAL_OVERRIDE;
|
2014-04-15 00:27:25 +02:00
|
|
|
|
2014-04-02 03:42:03 +02:00
|
|
|
private:
|
|
|
|
|
2014-04-16 15:21:30 +02:00
|
|
|
OpenGLContext* mpContext;
|
2014-04-14 02:02:39 +02:00
|
|
|
|
|
|
|
boost::scoped_ptr<IOpenGLRenderer> mpRenderer;
|
2014-03-17 22:03:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|