diff options
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. |