TDME2 1.9.121
PrototypeImposterLOD.cpp
Go to the documentation of this file.
2
3#include <string>
4#include <vector>
5
6#include <tdme/tdme.h>
9
11
12using std::string;
13using std::vector;
14
17
18PrototypeImposterLOD::PrototypeImposterLOD(
19 const vector<string>& fileNames,
20 const vector<Model*>& models,
21 float minDistance
22) :
23 fileNames(fileNames),
24 models(models),
25 minDistance(minDistance) {
26 colorMul.set(1.0f, 1.0f, 1.0f, 1.0f);
27 colorAdd.set(0.0f, 0.0f, 0.0f, 0.0f);
28}
29
31 for (auto model: models) delete model;
32}
void set(const array< float, 4 > &color)
Set up color.
Definition: Color4Base.h:68
Color 4 definition.
Definition: Color4.h:20
Representation of a 3d model.
Definition: Model.h:32