Oxygine  1
2g game engine
MaskedSprite.h
1 #pragma once
2 #include "oxygine-include.h"
3 #include "Sprite.h"
4 
5 namespace oxygine
6 {
7  DECLARE_SMART(MaskedSprite, spMaskedSprite);
8  class MaskedSprite: public Sprite
9  {
10  INHERITED(Sprite);
11  public:
12  DECLARE_COPYCLONE_NEW(MaskedSprite);
13 
14  MaskedSprite();
15  ~MaskedSprite();
16 
17  spSprite getMask() const;
18  bool getUseRChannel() const;
19 
20  void setMask(spSprite, bool useRChannel = false);
21 
22  void serialize(serializedata* data) override;
23  void deserialize(const deserializedata* data) override;
24  void deserializeLink(const deserializeLinkData*) override;
25 
26  protected:
27  void render(const RenderState& parentRS) override;
28 
29  private:
30  spSprite _mask;
31  bool _useRChannel;
32  };
33 }
34 
35 EDITOR_INCLUDE(MaskedSprite);
void deserializeLink(const deserializeLinkData *) override
Definition: Serialize.h:28
Definition: Sprite.h:14
Definition: RenderState.h:27
Definition: Serialize.h:21
Definition: MaskedSprite.h:8
–oxgl-end–!
Definition: Actor.h:14
void render(const RenderState &parentRS) override