KlassischeKeplerKriege/game/renderer_polygon_3d/renderer_polygon_3d.cpp

28 lines
576 B
C++
Raw Normal View History

2016-09-28 09:50:35 +00:00
#include "renderer_polygon_3d.hpp"
#include <iostream>
#include "polygon_model.hpp"
2016-09-28 09:50:35 +00:00
namespace endofthejedi {
void RendererPolygon3d::setup()
{
std::cout<<"setup 3d" << std::endl;
m_atomicBomb = new PolygonModel("../data/mesh/small_atomic_bomb.stl");
m_atomicBomb->loadIntoOpenGl();
m_models.push_back(m_atomicBomb);
2016-09-28 09:50:35 +00:00
}
void RendererPolygon3d::render(const game::State *state)
{
(void) state;
m_atomicBomb->bind();
m_atomicBomb->render();
//std::cout<<"render 3d" << std::endl;
2016-09-28 09:50:35 +00:00
}
}