diff options
author | Eugene Sandulenko | 2010-09-04 22:29:36 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 23:36:25 +0000 |
commit | e844de5141a03692e74c892a35e55f1c9697719a (patch) | |
tree | 9b5684c192752dbb8f0c53e743b437fc3daa2b69 /engines/sword25/gfx/image/vectorimage.h | |
parent | 5f8739209b2cb637348954fd428594658daf2df4 (diff) | |
download | scummvm-rg350-e844de5141a03692e74c892a35e55f1c9697719a.tar.gz scummvm-rg350-e844de5141a03692e74c892a35e55f1c9697719a.tar.bz2 scummvm-rg350-e844de5141a03692e74c892a35e55f1c9697719a.zip |
SWORD25: Started rewriting vector renderer into proper one
Previous attempt was all wrong, as it completely incorrectly
interpreted SWF shape data.
svn-id: r53319
Diffstat (limited to 'engines/sword25/gfx/image/vectorimage.h')
-rw-r--r-- | engines/sword25/gfx/image/vectorimage.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/engines/sword25/gfx/image/vectorimage.h b/engines/sword25/gfx/image/vectorimage.h index ea9948fec7..ac53f031c5 100644 --- a/engines/sword25/gfx/image/vectorimage.h +++ b/engines/sword25/gfx/image/vectorimage.h @@ -60,17 +60,20 @@ class VectorImage; class VectorPathInfo { public: - VectorPathInfo(ArtVpath *vec, uint lineStyle, uint fillStyle0, uint fillStyle1) : - _vec(vec), _lineStyle(lineStyle), _fillStyle0(fillStyle0), _fillStyle1(fillStyle1) {} + VectorPathInfo(ArtBpath *vec, int len, uint lineStyle, uint fillStyle0, uint fillStyle1) : + _vec(vec), _lineStyle(lineStyle), _fillStyle0(fillStyle0), _fillStyle1(fillStyle1), _len(len) {} VectorPathInfo() { - _lineStyle = _fillStyle0 = _fillStyle1 = 0; + _lineStyle = _fillStyle0 = _fillStyle1 = _len = 0; _vec = 0; } - ArtVpath *getVec() const { + ArtBpath *getVec() const { return _vec; } + int getVecLen() const { + return _len; + } uint getLineStyle() const { return _lineStyle; } @@ -82,13 +85,13 @@ public: } private: - ArtVpath *_vec; + ArtBpath *_vec; uint _lineStyle; uint _fillStyle0; uint _fillStyle1; + uint _len; }; - /** @brief Ein Element eines Vektorbild. Ein BS_VectorImage besteht aus diesen Elementen, die jeweils einen Teil der Graphik definieren. Werden alle Elemente eines Vektorbildes übereinandergelegt, ergibt sich das komplette Bild. |