2016-09-28 09:50:35 +00:00
|
|
|
#include "renderer_polygon_3d.hpp"
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
2016-09-28 11:00:40 +00:00
|
|
|
#include "polygon_model.hpp"
|
|
|
|
|
2016-09-28 09:50:35 +00:00
|
|
|
namespace endofthejedi {
|
|
|
|
void RendererPolygon3d::setup()
|
|
|
|
{
|
|
|
|
std::cout<<"setup 3d" << std::endl;
|
2016-09-28 11:00:40 +00:00
|
|
|
|
2016-09-28 11:16:11 +00:00
|
|
|
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;
|
|
|
|
|
2016-09-28 11:16:11 +00:00
|
|
|
m_atomicBomb->bind();
|
|
|
|
m_atomicBomb->render();
|
|
|
|
|
|
|
|
//std::cout<<"render 3d" << std::endl;
|
2016-09-28 09:50:35 +00:00
|
|
|
}
|
|
|
|
}
|