kick
/Users/morten/Programmering/cpp/kick/src/kick/2d/canvas.inl
00001 namespace kick{
00002     template <typename C, typename... T>
00003     inline std::shared_ptr<C> Canvas::addComponent(T... t){
00004         auto go = createGameObject();
00005         go->transform()->setParent(transform());
00006         auto c = go->addComponent<C>(std::dynamic_pointer_cast<Canvas>(shared_from_this()), t...);
00007 
00008         registerComponent2D(c);
00009 
00010         return c;
00011     }
00012 }
 All Classes Functions Variables