KlassischeKeplerKriege/game/renderer_polygon_3d/renderer_polygon_3d.cpp

27 lines
576 B
C++

#include "renderer_polygon_3d.hpp"
#include <iostream>
#include "polygon_model.hpp"
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);
}
void RendererPolygon3d::render(const game::State *state)
{
(void) state;
m_atomicBomb->bind();
m_atomicBomb->render();
//std::cout<<"render 3d" << std::endl;
}
}