creating a second ctor for Drawable2D

This commit is contained in:
Clément Le Bihan
2021-06-16 17:42:48 +02:00
parent 05806fd2c3
commit 43de339cf7
9 changed files with 58 additions and 50 deletions
@@ -27,6 +27,14 @@ namespace BBM
drawBefore3D(drawBefore3D)
{}
//! ctor
template<typename T, typename ...Params>
explicit Drawable2DComponent(WAL::Entity &entity, WAL::TypeHolder<T>, Params &&...params)
: WAL::Component(entity),
drawable(new T(std::forward<Params>(params)...)),
drawBefore3D(false)
{}
//! ctor
template<typename T, typename ...Params>
explicit Drawable2DComponent(WAL::Entity &entity, WAL::TypeHolder<T>, bool drawBefore3D, Params &&...params)