Box2D Cannon Game With Stars
Game Physics with a 2D Physics Engine
Loading...
Searching...
No Matches
Main.cpp File Reference

Every program has to have a main.

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

Macros

#define USE_DEBUG_CONSOLE
 Define to use a console window for debug messages.
 

Functions

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

 

Variables

static Sage::CWindow g_cWindow
 The window class.
 
static CGame g_cGame
 The game class.
 

Function Documentation

◆ wWinMain()

int WINAPI wWinMain ( _In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPWSTR lpCmdLine,
_In_ int nCmdShow )

The main entry point for this application.

Parameters
hInstanceHandle to the current instance of this application.
hPrevInstanceUnused.
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: