diff options
author | Dmitrijs Ledkovs <xnox@debian.org> | 2013-09-24 09:14:03 +0100 |
---|---|---|
committer | Dmitrijs Ledkovs <xnox@debian.org> | 2013-09-24 09:14:03 +0100 |
commit | 28161e9209f21be1a600f637565ecede94855a36 (patch) | |
tree | 5a82eaf04f3d680b0b4486f6d738bd3620d01f75 /src/player/LineNode.h |
libavg (1.7.1-4) unstable; urgency=low
* Drop automake1.10 dependency in favor of automake. Closes: #724398.
# imported from the archive
Diffstat (limited to 'src/player/LineNode.h')
-rw-r--r-- | src/player/LineNode.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/src/player/LineNode.h b/src/player/LineNode.h new file mode 100644 index 0000000..daa5fbd --- /dev/null +++ b/src/player/LineNode.h @@ -0,0 +1,64 @@ +// +// libavg - Media Playback Engine. +// Copyright (C) 2003-2011 Ulrich von Zadow +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// Current versions can be found at www.libavg.de +// + +#ifndef _LineNode_H_ +#define _LineNode_H_ + +#include "../api.h" +#include "VectorNode.h" + +#include "../graphics/Pixel32.h" + +namespace avg { + +class AVG_API LineNode : public VectorNode +{ + public: + static NodeDefinition createDefinition(); + + LineNode(const ArgList& args); + virtual ~LineNode(); + + const DPoint& getPos1() const; + void setPos1(const DPoint& pt); + + const DPoint& getPos2() const; + void setPos2(const DPoint& pt); + + double getTexCoord1() const; + void setTexCoord1(double tc); + + double getTexCoord2() const; + void setTexCoord2(double tc); + + virtual void calcVertexes(VertexArrayPtr& pVertexArray, Pixel32 color); + + private: + DPoint m_P1; + DPoint m_P2; + double m_TC1; + double m_TC2; +}; + +} + +#endif + |