Presentation mode tweaks. Fix for Issue 74: added FileIO interface, Fix for Issue 76: added pure virtual destructor for duDebugDraw.

This commit is contained in:
Mikko Mononen
2010-05-07 07:14:42 +00:00
parent 87800abc28
commit 49f2b03cd8
15 changed files with 2193 additions and 1932 deletions

View File

@@ -58,11 +58,20 @@ Sample_Debug::Sample_Debug() :
// Test
m_chf = new rcCompactHeightfield;
if (!duReadCompactHeightfield(*m_chf, "Tile_-13_-14_chf.bin"))
FileIO io;
if (!io.openForRead("test.chf"))
{
delete m_chf;
m_chf = 0;
}
else
{
if (!duReadCompactHeightfield(*m_chf, &io))
{
delete m_chf;
m_chf = 0;
}
}
/* if (m_chf)
{