diff options
| author | Samu Laaksonen <laaksonen.sj@gmail.com> | 2012-09-25 20:00:41 +0300 |
|---|---|---|
| committer | Samu Laaksonen <laaksonen.sj@gmail.com> | 2012-09-25 20:00:41 +0300 |
| commit | 685fe05def77b039221edf06c74af74915d536c5 (patch) | |
| tree | 9c1a14b8f68bc0f801bdec3edc447d04fdbf7a4c /src/ParallaxScrollerStatic.h | |
| parent | 29eabac0670574efd384182c065f53d08c42a483 (diff) | |
| download | prism-685fe05def77b039221edf06c74af74915d536c5.tar.gz prism-685fe05def77b039221edf06c74af74915d536c5.zip | |
Initial code commit
Added some stuff for project base
- tiled sources
- few Qt based classes for gfx
Diffstat (limited to 'src/ParallaxScrollerStatic.h')
| -rw-r--r-- | src/ParallaxScrollerStatic.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/ParallaxScrollerStatic.h b/src/ParallaxScrollerStatic.h new file mode 100644 index 0000000..04e9547 --- /dev/null +++ b/src/ParallaxScrollerStatic.h @@ -0,0 +1,26 @@ +#ifndef ParallaxScrollerStatic_h +#define ParallaxScrollerStatic_h + +#include <QStringList> +#include <QPointF> +#include <QGraphicsScene> + +class ParallaxScrollerItem; + +class ParallaxScrollerStatic +{ +public: + ParallaxScrollerStatic(QGraphicsScene* scene); + virtual ~ParallaxScrollerStatic(); + + void setLayerWidth(int width); + void addParallaxScrollItem(const QString& layer, QPointF pos, qreal depth, qreal slowingFactor); + +private: + QGraphicsScene* m_parent; + QVector<ParallaxScrollerItem*> m_layersFirstWave; + QVector<ParallaxScrollerItem*> m_layerSecondWave; + int m_layerWidth; +}; + +#endif // ParallaxScrollerStatic_h |
