Refactored rcBuildContext to be more customization friendly, changed name to rcContext.

This commit is contained in:
Mikko Mononen
2010-08-24 17:53:38 +00:00
parent 02b189a7cb
commit 5abddbf0cd
28 changed files with 3268 additions and 1444 deletions

View File

@@ -138,7 +138,7 @@ Sample_Debug::Sample_Debug() :
if (m_cset)
{
FileIO io;
if (io.openForRead("remove_vertex_issue_contour_cache.rc"))
if (io.openForRead("PathSet_TMP_NA_PathingTestAReg1_1_2_CS.rc"))
{
duReadContourSet(*m_cset, &io);
@@ -158,14 +158,14 @@ Sample_Debug::Sample_Debug() :
}
if (m_cset)
/* if (m_cset)
{
m_pmesh = rcAllocPolyMesh();
if (m_pmesh)
{
rcBuildPolyMesh(m_ctx, *m_cset, 6, *m_pmesh);
}
}
}*/
}
}
@@ -214,7 +214,7 @@ void Sample_Debug::handleRender()
if (m_cset)
{
duDebugDrawRawContours(&dd, *m_cset, 0.25f);
// duDebugDrawContours(&dd, *m_cset);
duDebugDrawContours(&dd, *m_cset);
}
if (m_pmesh)