//GUITEXT class guitext : public entity { public: guitext(graphics *gfx, std::string _text, float _x, float _y, float _size, float timeToLive); bool upd
In addition, in your case it's not good idea to pass arguments by value, i suppose there will be very big quantity of objects that need to be redrawed. Better, by const reference, since functon doesn't change state of passed object inside.