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/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INCLUDED_SVX_SVDO_OPENGL_HXX
|
|
|
|
#define INCLUDED_SVX_SVDO_OPENGL_HXX
|
|
|
|
|
|
|
|
#include <svx/svdobj.hxx>
|
2014-04-02 03:42:03 +02:00
|
|
|
#include <vcl/OpenGLContext.hxx>
|
2014-03-17 22:03:14 +01:00
|
|
|
|
2014-04-14 02:02:39 +02:00
|
|
|
#include <vcl/IOpenGLRenderer.hxx>
|
|
|
|
|
|
|
|
#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-03-17 22:03:14 +01:00
|
|
|
class SVX_DLLPUBLIC SdrOpenGLObj : public SdrObject
|
|
|
|
{
|
|
|
|
public:
|
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;
|
|
|
|
|
|
|
|
OpenGLContext& getOpenGLContext();
|
|
|
|
|
2014-04-08 08:09:19 +03: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-02 03:42:03 +02:00
|
|
|
private:
|
|
|
|
|
|
|
|
OpenGLContext maContext;
|
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: */
|