| 5 | #include "CarRenderer.h" |
| 6 | |
| 7 | CarRenderer::CarRenderer(shared_ptr<Car> &activeCar) : carShader(activeCar) { |
| 8 | car = activeCar; |
| 9 | if(!car->isMultitextured()){ |
| 10 | // TODO: Move this out of car shader and into Car constructor |
| 11 | carShader.load_tga_texture(); |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | void CarRenderer::render(const Camera &mainCamera, const std::vector<Light> &contributingLights) { |
| 16 | carShader.use(); |
nothing calls this directly
no test coverage detected