Skip to Main Content
3D Game Engine Design, 2nd Edition
book

3D Game Engine Design, 2nd Edition

by David Eberly
November 2006
Intermediate to advanced content levelIntermediate to advanced
1040 pages
26h 31m
English
CRC Press
Content preview from 3D Game Engine Design, 2nd Edition
828 Chapter 18 Object-Oriented Infrastructure
{
ms_iFinalObjects = (int)Object::InUse->size();
}
else
{
ms_iFinalObjects = 0;
}
if (ms_iStartObjects != ms_iFinalObjects)
{
bCountIsCorrect = false;
Object::PrintInUse("AppLog.txt",
"Not all objects were deleted before postmain termination");
}
if (ms_pkTerminators)
{
for(inti=0;i<(int)ms_pkTerminators->size(); i++)
{
(*ms_pkTerminators)[i]();
}
}
delete ms_pkTerminators;
ms_pkTerminators = 0;
if (bCountIsCorrect)
{
// Objects should not be deleted postmain.
if (Object::InUse)
{
ms_iFinalObjects = (int)Object::InUse->size();
}
else
{
ms_iFinalObjects = 0;
}
if (ms_iFinalObjects != 0)
{
bCountIsCorrect = false;
Object::PrintInUse("AppLog.txt",
"Objects were deleted after postmain termination");
}
}
18.8 Initialization and Ter mination ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

3D Game Engine Architecture

3D Game Engine Architecture

David Eberly
Blender 3D By Example - Second Edition

Blender 3D By Example - Second Edition

Oscar Baechler, Xury Greer
Computer Graphics

Computer Graphics

Alexey Boreskov, Evgeniy Shikin

Publisher Resources

ISBN: 9781482267303