ElementBase.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
9 
10 
11 namespace ege {
12  class ElementBase : public ege::Element {
13  public:
23  virtual ~ElementBase();
28  virtual const std::string& getType() const;
29  virtual void draw(int32_t _pass=0);
30  private:
31  vec3 m_position;
32  public:
33  virtual const vec3& getPosition();
34  virtual void setPosition(const vec3& _pos);
35  };
36 }
37 
virtual void setPosition(const vec3 &_pos)
set the current position of the element
Definition: ElementBase.hpp:12
Definition: AudioElement.hpp:8
virtual const vec3 & getPosition()
get the current position of the element
virtual void draw(int32_t _pass=0)
draw the curent element (can have multiple display)
virtual const std::string & getType() const
get the element Type description string.
virtual ~ElementBase()
Destructor.
ElementBase(const ememory::SharedPtr< ege::Environement > &_env)
Constructor (when constructer is called just add element that did not change. The objest will be stor...
Definition: Element.hpp:28