Fixed bug in edge generation (also appears in regular side). Added portal edge detection. Adjusted layer related debug draw.

This commit is contained in:
Mikko Mononen
2011-03-11 20:22:22 +00:00
parent e238288549
commit 4be11d07f8
5 changed files with 191 additions and 103 deletions

View File

@@ -746,8 +746,8 @@ void Sample_TileMesh::handleRenderOverlay(double* proj, double* model, int* view
{
char text[32];
snprintf(text,32,"Layer %d", i+1);
imguiDrawText((int)x+10+1, (int)y-1, IMGUI_ALIGN_LEFT, text, imguiRGBA(0,0,0,128));
imguiDrawText((int)x+10, (int)y, IMGUI_ALIGN_LEFT, text, color);
imguiDrawRoundedRect(x+10-6,y-6,100,20, 4, duTransCol(color,128));
imguiDrawText((int)x+10, (int)y, IMGUI_ALIGN_LEFT, text, imguiRGBA(255,255,255,255));
}
}