MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / CarRenderer

Method CarRenderer

src/Renderer/CarRenderer.cpp:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "CarRenderer.h"
6
7CarRenderer::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
15void CarRenderer::render(const Camera &mainCamera, const std::vector<Light> &contributingLights) {
16 carShader.use();

Callers

nothing calls this directly

Calls 2

isMultitexturedMethod · 0.80
load_tga_textureMethod · 0.80

Tested by

no test coverage detected