Compiles with -Wall (except stb_truetype)

This commit is contained in:
Mikko Mononen
2010-02-05 07:32:30 +00:00
parent 9c5b541b00
commit fa66b9a9f3
13 changed files with 392 additions and 141 deletions

View File

@@ -67,18 +67,6 @@ void duDebugDrawTriMeshSlope(duDebugDraw* dd, const float* verts, int nverts,
dd->end();
}
static int getSpanCount(const rcHeightfield& hf)
{
const int w = hf.width;
const int h = hf.height;
int spanCount = 0;
for (int y = 0; y < h; ++y)
for (int x = 0; x < w; ++x)
for (rcSpan* s = hf.spans[x + y*w]; s; s = s->next)
spanCount++;
return spanCount;
}
void duDebugDrawHeightfieldSolid(duDebugDraw* dd, const rcHeightfield& hf)
{