Lecrapouille / Highway

[Application][WIP] Open-source simulator for autonomous driving research.
GNU General Public License v3.0
2 stars 1 forks source link

Rendering City: where to place the code ? #18

Open Lecrapouille opened 1 year ago

Lecrapouille commented 1 year ago

Shall be moved to render.cpp or in simulator.cpp ?

Lecrapouille commented 1 year ago

Idee

template<class T>
class Drawable
{};

template<>
class Drawable<City>(City& city)
{
public:
  Drawable(City& city) : m_city(city) {}
  void draw() { ...  }

private:
City& m_city;
};