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>
7 #include "mspgameview_api.h"
9 namespace Msp::GameView {
11 class MSPGAMEVIEW_API MeshRenderer: public Game::Component
14 Game::Handle<Game::MeshSource> source;
15 const GL::Object &object;
16 GL::ObjectInstance instance;
19 MeshRenderer(Game::Handle<Game::Entity>, Game::Handle<Game::MeshSource>);
21 GL::ObjectInstance &get_instance() { return instance; }
26 } // namespace Msp::GameView