mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-08-13 08:59:25 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user