... | ... | @@ -16,9 +16,9 @@ The destructor deletes and cleans up member pointers. |
|
|
|`m_game`|[Game*](https://github.com/sadmansk/GameEngine/wiki/Game-Class)|`private`|Object for handling all game logic, input, game rendering, etc.|
|
|
|
|
|
|
####Member Functions:
|
|
|
| Name | Return Type | Visibility | Description |
|
|
|
|-------------------|----------|----------------|-----------------|
|
|
|
|`Start()`|`void`|`public`|Starts the main engine and game loop by resetting the timer and invoke `Run()`|
|
|
|
|`Stop()`|`void`|`public`|Stops the main engine by setting `m_isRunning` to false, eventually stopping the game loop in `Run()`|
|
|
|
|`Run()`|`void`|`private`|Contains the main game loop, it makes calls to all the required `m_game` functions, and renders the frames by using a timer|
|
|
|
|`Render()`|`void`|`private`|Called from `Run()`, it clears the screen and renders `m_mainWindow` and `m_game`| |
|
|
\ No newline at end of file |
|
|
| Name | Return Type | Visibility | Parameters | Description |
|
|
|
|-------------------|----------|----------------|---------|--------|
|
|
|
|`Start()`|`void`|`public`| *none* | Starts the main engine and game loop by resetting the timer and invoke `Run()`|
|
|
|
|`Stop()`|`void`|`public`| *none* |Stops the main engine by setting `m_isRunning` to false, eventually stopping the game loop in `Run()`|
|
|
|
|`Run()`|`void`|`private`| *none* |Contains the main game loop, it makes calls to all the required `m_game` functions, and renders the frames by using a timer|
|
|
|
|`Render()`|`void`|`private`|*none* | Called from `Run()`, it clears the screen and renders `m_mainWindow` and `m_game`| |
|
|
\ No newline at end of file |