diff --git a/ege/CollisionShapeCreator.cpp b/ege/CollisionShapeCreator.cpp index 46e2c95..58494e8 100644 --- a/ege/CollisionShapeCreator.cpp +++ b/ege/CollisionShapeCreator.cpp @@ -36,7 +36,7 @@ btCollisionShape* ege::collision::createShape(const ewol::Mesh* _mesh) { return new btEmptyShape();; } int32_t count = 0; - for (int32_t iii=0; iii1) { outputShape = new btCompoundShape(); } - for (int32_t iii=0; iiigetPosition(); ege::ElementGame* result = NULL; - for (int32_t iii=0; iiiresult.dist) { _resultList.insert(_resultList.begin()+jjj, result); @@ -172,7 +172,7 @@ void ege::Environement::addElementGame(ege::ElementGame* _newElement) { if (NULL == _newElement) { return; } - for (int32_t iii=0; iiidynamicEnable(); @@ -188,13 +188,13 @@ void ege::Environement::rmElementGame(ege::ElementGame* _removeElement) { return; } // inform the element that an element has been removed == > this permit to keep pointer on elements ... - for (int32_t iii=0; iiielementIsRemoved(_removeElement); } } // ream remove on the element : - for (int32_t iii=0; iiionDestroy(); m_listElementGame[iii]->dynamicDisable(); @@ -216,7 +216,7 @@ void ege::Environement::getOrderedElementForDisplay(std::vectorresult.dist) { _resultList.insert(_resultList.begin()+jjj, result); @@ -255,7 +255,7 @@ void ege::Environement::getOrderedElementForDisplay(std::vector this permit to keep pointer on elements ... - for (int32_t iii=0; iii(1.0f/60.0f)) { _deltaTime = (1.0f/60.0f); } - for (esize_t iii=0; iiiupdate(_deltaTime); } // check removing elements - for (esize_t iii=0; iii no more needed ==> checked in the generate the list of the element ordered - for (int32_t iii=0; iiipreCalculationDraw(*m_camera); } // note : the first pass is done at the reverse way to prevent multiple display od the same point in the screen @@ -200,16 +200,16 @@ void ege::Scene::onDraw(void) { } // for the other pass the user can draw transparent elements ... for (int32_t pass=1; pass <= NUMBER_OF_SUB_PASS+1; pass++) { - for (int32_t iii=0; iiidraw(pass); } } - for (int32_t iii=0; iiidrawLife(m_debugDrawing, *m_camera); } #ifdef DEBUG if (true == m_debugMode) { - for (int32_t iii=0; iiidrawDebug(m_debugDrawing, *m_camera); } } diff --git a/ege/resource/ParticuleMesh.cpp b/ege/resource/ParticuleMesh.cpp index 455fe63..0eebd81 100644 --- a/ege/resource/ParticuleMesh.cpp +++ b/ege/resource/ParticuleMesh.cpp @@ -63,7 +63,7 @@ void ege::resource::ParticuleMesh::draw(mat4& _positionMatrix, int32_t nbElementDrawTheoric = 0; int32_t nbElementDraw = 0; #endif - for (esize_t kkk=0; kkk tmpIndexResult; std::vector& tmppFaces = m_listFaces.getValue(kkk).m_faces; - std::vector& tmppIndex = m_listFaces.getValue(kkk).m_index; + //std::vector& tmppIndex = m_listFaces.getValue(kkk).m_index; if (normalModeFace == m_normalMode) { - for(int32_t iii=0; iii= 0.0f) { tmpIndexResult.push_back(iii*3); tmpIndexResult.push_back(iii*3+1); @@ -96,7 +96,7 @@ void ege::resource::ParticuleMesh::draw(mat4& _positionMatrix, } } } else { - for(int32_t iii=0; iii= -0.2f) || (btDot(mattttt * m_listVertexNormal[tmppFaces[iii].m_normal[1]], cameraNormal) >= -0.2f) || (btDot(mattttt * m_listVertexNormal[tmppFaces[iii].m_normal[2]], cameraNormal) >= -0.2f) ) {