Guest User

Component Example

a guest
Jul 21st, 2020
448
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /// @category(VSO.Basic)
  2. class SpriteComponent : public MaterialComponent
  3. {
  4.     VISUAL_CLASS(MaterialComponent)
  5.  
  6. public:
  7.     /// @getter
  8.     const std::string& GetId() const;
  9.     /// @setter
  10.     void SetId(const std::string& id);
  11.  
  12. protected:
  13.     void OnInit() override;
  14.     void Draw() override;
  15.  
  16. protected:
  17.     /// @property
  18.     Color _color = Color::WHITE;
  19.     /// @property
  20.     Sprite _sprite;
  21. };
RAW Paste Data