Oxygine  1
2g game engine
ClipRectActor.h
1 #pragma once
2 #include "oxygine-include.h"
3 #include "Actor.h"
4 
5 namespace oxygine
6 {
7  DECLARE_SMART(ClipRectActor, spClipRectActor);
11  class ClipRectActor : public Actor
12  {
13  INHERITED(Actor);
14  public:
15  DECLARE_COPYCLONE_NEW(ClipRectActor);
16  ClipRectActor();
17  ~ClipRectActor();
18 
19  bool getClipping() const { return _clipping; }
20 
22  void setClipping(bool enable) {_clipping = enable;}
23 
24  void render(const RenderState& rs) override;
25 
26 
27  void handleEvent(Event* event) override;
28 
29  void serialize(serializedata* data) override;
30  void deserialize(const deserializedata* data) override;
31 
32  protected:
33 
34  bool _clipping;
35  };
36 }
37 
38 EDITOR_INCLUDE(ClipRectActor);
Definition: Serialize.h:28
void setClipping(bool enable)
Definition: ClipRectActor.h:22
Definition: Actor.h:42
Definition: Event.h:10
Definition: RenderState.h:27
Definition: Serialize.h:21
–oxgl-end–!
Definition: Actor.h:14
void render(const RenderState &rs) override
Definition: ClipRectActor.h:11