office-gobmx/include/drawinglayer/primitive2d/openglprimitive2d.hxx
2014-04-19 11:10:05 +02:00

41 lines
1.1 KiB
C++

/* -*- 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_DRAWINGLAYER_PRIMITIVE2D_OPENGLPRIMITIVE2D_HXX
#define INCLUDED_DRAWINGLAYER_PRIMITIVE2D_OPENGLPRIMITIVE2D_HXX
#include <tools/gen.hxx>
#include <drawinglayer/primitive2d/baseprimitive2d.hxx>
namespace drawinglayer {
namespace primitive2d {
/// Primitive to hold data necessary for openGL objects
class DRAWINGLAYER_DLLPUBLIC OpenGLPrimitive2D : public BasePrimitive2D
{
public:
explicit OpenGLPrimitive2D(const Point& rPos);
const Point& getPos() const { return m_aPos; }
virtual bool operator==( const BasePrimitive2D& rPrimitive ) const SAL_OVERRIDE;
/// provide unique ID
DeclPrimitive2DIDBlock()
private:
Point m_aPos;
};
} // namespace primitive2d
} // namespace drawinglayer
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */