Quickly fixed some build errors.

This commit is contained in:
Georges Dupéron 2014-09-25 01:36:57 +02:00
parent 10aed0d2b1
commit b7e3683fbf
5 changed files with 7 additions and 7 deletions

View File

@ -24,7 +24,7 @@ $(EXECUTABLE): $(SOURCES) all_includes.hh.gch Makefile
@echo "#define _ALL_CPP_">> all.cpp
@$(foreach FILE,$(SOURCES),echo '#include "'"$(FILE)"'"' >> all.cpp;)
@echo "#endif">> all.cpp
$(CXX) $(LIBS) $(CFLAGS) all.cpp -o $@
$(CXX) all.cpp $(LIBS) $(CFLAGS) -o $@
@rm all.cpp
all_includes.hh.gch: $(HEADERS) Makefile

View File

@ -60,9 +60,9 @@ void Lod::setCamera(Vertex newCamera) {
void Lod::doSplit(Chose* c) {
c->split();
std::vector<Chose*>::iterator it;
bool mergeCube = false;
////bool mergeCube = false; // Started to work again on the project, a new warning detected this.
for (it = c->children.begin(); it != c->children.end(); ++it) {
mergeCube = true;
////mergeCube = true; // Started to work again on the project, a new warning detected this.
(*it)->triangulation();
(*it)->updateAABB();
// (*it)->drawAABB();

View File

@ -30,7 +30,7 @@ protected :
virtual void getBoundingBoxPoints() = 0;
virtual float LODFactor();
Chose();
~Chose();
virtual ~Chose();
inline void addEntropy(unsigned int x1) {
seed = hash2(seed, x1);
}

View File

@ -2,7 +2,7 @@
const unsigned int Couleurs::fog = mix(cielHaut, cielBas, 0.5);
const float Dimensions::splitFactor = 1.f;
const float Dimensions::mergeFactor = 1.25f;
const float Dimensions::splitFactor = 3.f;
const float Dimensions::mergeFactor = 4.f;
const float Dimensions::frontFrustum = 1.f;
const float Dimensions::backFrustum = 4000 * 100; // 4km

View File

@ -45,7 +45,7 @@ void MurQuad::split() {
Quad righth = Quad(windowPosh[NW],windowPosh[SW],ch[SW],ch[NW]);
Quad left = Quad(c[NE],c[SE],windowPos[SE],windowPos[NE]);
Quad lefth = Quad(ch[NE],ch[SE],windowPosh[SE],windowPosh[NE]);
Quad top = Quad(windowPosh[NE],windowPosh[NW],windowPosh[SW],windowPosh[SE]);
////Quad top = Quad(windowPosh[NE],windowPosh[NW],windowPosh[SW],windowPosh[SE]); // Started to work again on the project, a new warning detected this.
if (!door) addChild(new MurQuad(c,windowPos,false, true, false));
addChild(new MurQuad(windowPosh,ch, false, false, true));