Box2D Binary Counter
Game Physics with a 2D Physics Engine
Loading...
Searching...
No Matches
Main.cpp File Reference

The home of WinMain. More...

#include "SageWindow.h"
#include "Game.h"
Include dependency graph for Main.cpp:

Functions

int WINAPI wWinMain (_In_ HINSTANCE hInst, _In_opt_ HINSTANCE hPrevInst, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow)
 The main entry point for this application.

 

Detailed Description

This file should be identical in all Sage games except for commenting out or uncommenting in a single line to activate or deactivate (respectively) the optional debug console, or commenting out a single line of code if you don't want to use Visual Leak Detector (which is not recommended).

Function Documentation

◆ wWinMain()

int WINAPI wWinMain ( _In_ HINSTANCE hInst,
_In_opt_ HINSTANCE hPrevInst,
_In_ LPWSTR lpCmdLine,
_In_ int nCmdShow )

Set things up so that your implementation of CGame::Initialize() is called at the correct time during initialization, CGame::ProcessFrame() is called as often as possible to compose and render a frame of animation, and CGame::Release() is called at the correct time during game shutdown.

Parameters
hInstHandle to the current instance of this application.
hPrevInstUnused.
lpCmdLineUnused.
nCmdShowNonzero if window is to be shown.
Returns
0 If this application terminates correctly, otherwise an error code.
Here is the call graph for this function: