|
|
The Core Engine class serves as the main abstraction layer for the main program. All the other modules run from within this class. This is also the class that contains the main game loop. All the other engine objects are ran from within this class's methods.
|
|
|
|
|
|
####Constructor and Destructor:
|
|
|
The constructor takes in the title, the width and the height of the main window (in that order). That's it. It uses that information to initialize a new [Window](https://github.com/sadmansk/GameEngine/wiki/Window-Class) and stores its address in `m_mainWindow`. It also constructs a new [Game*](https://github.com/sadmansk/GameEngine/wiki/Game-Class) and stores that in `m_game`. `m_isRunning` is also initialized as `true`.
|
|
|
The constructor takes in the title, the width and the height of the main window (in that order). That's it. It uses that information to initialize a new [Window](https://github.com/sadmansk/GameEngine/wiki/Window-Class) and stores its address in `m_mainWindow`. It also constructs a new [Game](https://github.com/sadmansk/GameEngine/wiki/Game-Class) and stores that in `m_game`. `m_isRunning` is also initialized as `true`.
|
|
|
|
|
|
The destructor deletes and cleans up member pointers.
|
|
|
|
... | ... | |