dmuratshin 9 years ago
parent
commit
60fa6877c3
2 changed files with 3 additions and 1 deletions
  1. 1 0
      oxygine/src/oxygine/STDRenderer.h
  2. 2 1
      oxygine/src/oxygine/VisualStyle.h

+ 1 - 0
oxygine/src/oxygine/STDRenderer.h

@@ -41,6 +41,7 @@ namespace oxygine
         const Matrix&   getViewProjection() const;
         IVideoDriver*   getDriver();
         unsigned int    getShaderFlags() const;
+        const VertexDeclaration* getVertexDeclaration() const { return _vdecl; }
 
         void setViewProj(const Matrix& viewProj);
         void setVertexDeclaration(const VertexDeclaration* decl);

+ 2 - 1
oxygine/src/oxygine/VisualStyle.h

@@ -41,13 +41,14 @@ namespace oxygine
 
         void                    setColor(const Color& color);
         void                    setColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a);
-        void                    setBlendMode(blend_mode mode) {_vstyle.setBlendMode(mode);}
+        void                    setBlendMode(blend_mode mode) { _vstyle.setBlendMode(mode); blendModeChanged(mode); }
 
         typedef Property<Color, const Color&, VStyleActor, &VStyleActor::getColor, &VStyleActor::setColor> TweenColor;
 
         bool getBounds(RectF& b) const  override { b = getDestRect();  return true; }
 
     protected:
+        virtual void blendModeChanged(blend_mode) {}
         VisualStyle _vstyle;
     };