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
Using overridden classes with the engine?
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
Share
-
Users Online 1
1 Guest
-
Similar Threads