~ubuntu-branches/ubuntu/trusty/libavg/trusty-proposed

« back to all changes in this revision

Viewing changes to src/player/ShadowFXNode.h

  • Committer: Package Import Robot
  • Author(s): OXullo Intersecans
  • Date: 2011-12-06 22:44:56 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20111206224456-qc7250z3ya1vi8s9
Tags: 1.7.0-0ubuntu1
* New upstream release (LP: #899183)
* Remove patches 0002-libav-0.7.patch, 0003-fglrx-segfault-on-startup.patch
  now merged to upstream
* Remove unnecessary .la files
* Update debian/watch file
* Fix debian/copyright dep-5 compliancy
* Update standards to version 3.9.2
* Add man pages for avg_checktouch, avg_checkvsync, avg_showsvg
* Minor debian/rules enhancement
* Add librsvg2-dev, libgdk-pixbuf2.0-dev to Build-Depends
* Proper transition to dh_python2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
2
//  libavg - Media Playback Engine. 
3
 
//  Copyright (C) 2003-2008 Ulrich von Zadow
 
3
//  Copyright (C) 2003-2011 Ulrich von Zadow
4
4
//
5
5
//  This library is free software; you can redistribute it and/or
6
6
//  modify it under the terms of the GNU Lesser General Public
32
32
 
33
33
namespace avg {
34
34
 
35
 
class SDLDisplayEngine;
36
 
 
37
35
class AVG_API ShadowFXNode: public FXNode {
38
36
public:
39
37
    ShadowFXNode();
40
38
    virtual ~ShadowFXNode();
41
39
 
 
40
    virtual void connect();
42
41
    virtual void disconnect();
43
42
    void setParams(const DPoint& offset, double stdDev, double opacity, 
44
43
            const std::string& sColor);
45
44
 
 
45
    void setOffset(const DPoint& offset);
 
46
    DPoint getOffset() const;
 
47
    void setRadius(double radius);
 
48
    double getRadius() const;
 
49
    void setOpacity(double opacity);
 
50
    double getOpacity() const;
 
51
    void setColor(const std::string& sColor);
 
52
    std::string getColor() const;
 
53
 
46
54
private:
47
55
    virtual GPUFilterPtr createFilter(const IntPoint& size);
 
56
    void updateFilter();
48
57
 
49
58
    GPUShadowFilterPtr m_pFilter;
50
59
 
51
60
    DPoint m_Offset;
52
61
    double m_StdDev;
53
62
    double m_Opacity;
 
63
    std::string m_sColorName;
54
64
    Pixel32 m_Color;
55
65
};
56
66