Fixed over 500 compile warnings. Mostly:
* Unused variables. * Missing newlines at ends of #included files. * signed int loop variables where the termination condition is an unsigned 'get number of' function. * 'NULL' used inappropriately for an integer or character constant (NULL is a pointer) * abstract base classes with no virtual destructor. * Floating point constants used to initialise integer variables.
This commit is contained in:
@@ -51,21 +51,14 @@ void GL_Simplex1to4::CalcClosest(float* m)
|
||||
bool res;
|
||||
|
||||
SimdVector3 v;
|
||||
SimdPoint3 pBuf[4];
|
||||
SimdPoint3 qBuf[4];
|
||||
SimdPoint3 yBuf[4];
|
||||
|
||||
|
||||
for (int i=0;i<m_numVertices;i++)
|
||||
{
|
||||
v = tr(m_vertices[i]);
|
||||
m_simplexSolver->addVertex(v,v,SimdPoint3(0.f,0.f,0.f));
|
||||
res = m_simplexSolver->closest(v);
|
||||
int res = m_simplexSolver->getSimplex(pBuf, qBuf, yBuf);
|
||||
|
||||
}
|
||||
|
||||
|
||||
//draw v?
|
||||
glDisable(GL_LIGHTING);
|
||||
glBegin(GL_LINES);
|
||||
|
||||
Reference in New Issue
Block a user