1 #ifndef MSP_GAMEVIEW_MESHRENDERER_H_
2 #define MSP_GAMEVIEW_MESHRENDERER_H_
4 #include <msp/game/component.h>
5 #include <msp/game/meshsource.h>
6 #include <msp/gl/objectinstance.h>
8 namespace Msp::GameView {
10 class MeshRenderer: public Game::Component
13 Game::Handle<Game::MeshSource> source;
14 const GL::Object &object;
15 GL::ObjectInstance instance;
18 MeshRenderer(Game::Handle<Game::Entity>, Game::Handle<Game::MeshSource>);
20 GL::ObjectInstance &get_instance() { return instance; }
25 } // namespace Msp::GameView