Here is the latest source code (v2.2) for the book!
Some of the things that are in this release:
Changes from 2.1 to 2.2
------------------------
Some of the things that are in this release:
Changes from 2.1 to 2.2
------------------------
- Fixed compile problems related to AGEIA's latest PhysX SDK v2.3
- Fixed a physics debug renderer problem - verts were being calculated incorrectly
- Fixed a problem with the random number generator's method to create a FLOAT randomly in a range
- Added debug memory checks to all the DXUTIL code to help find memory leaks (see DX_NEW)
- Fixed some build target malfunctions
- Moved all resources from GameCode2.lib project to TeapotWars project
- Created a new Teapot icon and got it to work (search for LoadIcon to see how this works)
- New member pure virtuals in GameCodeApp - VGetGameTitle(), VGetGameAppDirectory(), and VGetIcon(). These new vituals are implemented in TeapotWarsApp - and if you have been using 2.1 you'll need to do the same thing
- Added _CRTDBG_LEAK_CHECK_DF flag to the _CrtSetDbgFlag call - this ensures a memory leak dump just before the game exits. The call to _CrtDumpMemoryLeaks() was not catching all the globally constructed/destructed objects
- Added a destructor to TeapotWarsGame class to formally destroy actors - you'll need to reimplement this same method in your game or you'll have leaks too
[/list=1]
NOTE: This code was tested on VC 2003 - for those 2005 users you'll need to do a little tweaking to get rid of warnings and fix some other minor problems.
Mr.Mike
Author, Programmer, Brewer, Patriot
Author, Programmer, Brewer, Patriot