Oxygine  1
2g game engine
ColorRectSprite.h
1 #pragma once
2 #include "oxygine-include.h"
3 #include "Sprite.h"
4 
5 namespace oxygine
6 {
7  DECLARE_SMART(ColorRectSprite, spColorRectSprite);
8 
9  class ColorRectSprite: public Sprite
10  {
11  INHERITED(Sprite);
12  public:
13  DECLARE_COPYCLONE_NEW(ColorRectSprite);
15  ~ColorRectSprite();
16 
17  void serialize(serializedata* data) override;
18  void deserialize(const deserializedata* data) override;
19 
20  void doRender(const RenderState&) override;
21 
22  RectF getDestRect() const override { return Actor::getDestRect(); }
23 
24  protected:
25  void sizeChanged(const Vector2& size) override;
26  };
27 }
28 
29 EDITOR_INCLUDE(ColorRectSprite);
Definition: Serialize.h:28
Definition: Sprite.h:14
Definition: RenderState.h:27
Definition: Serialize.h:21
–oxgl-end–!
Definition: Actor.h:14
Definition: ColorRectSprite.h:9