In the teapot wars source code, WinMain passes control immediately over to the one for the engine. How then does the engine know to use the overridden classes i.e the engine does initInstance on gApp which is defined in the engine itself, but you'd need the engine to actually work with an object of type TeapotAppLayer : public BaseAppLayer. Similarly for other classes to implement the game-specific functionality. Sorry if its a stupid question; I feel like I may be missing something obvious
![:(](https://www.mcshaffry.com/GameCode/wcf/images/smilies/sad.png)