Mercurial > hg > orthanc-stone
diff Framework/Scene2D/ColorSceneLayer.h @ 643:f0008c55e5f7
getting rid of MessageType enumeration
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 10 May 2019 17:34:48 +0200 |
parents | 500c3f70b6c2 |
children | 61ba4b504e9a |
line wrap: on
line diff
--- a/Framework/Scene2D/ColorSceneLayer.h Fri May 10 14:54:03 2019 +0200 +++ b/Framework/Scene2D/ColorSceneLayer.h Fri May 10 17:34:48 2019 +0200 @@ -35,17 +35,20 @@ uint8_t green_; uint8_t blue_; uint64_t revision_; + protected: void BumpRevision() { - // this is *not* thread-safe!!! + // this is *not* thread-safe!!! => (SJO) no problem, Stone assumes mono-threading revision_++; } + public: ColorSceneLayer() : red_(255), green_(255), - blue_(255) + blue_(255), + revision_(0) { }