The Blank Game
A Blank 2D Game with Sound and a Sprite
Functions | Variables
Main.cpp File Reference

Every program has to have a main. More...

#include "Game.h"
#include "Window.h"

Functions

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

Variables

static LWindow 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.