mElite  1.0
An Elite clone based on TextElite by Jan-Philipp Kappmeier and Melanie Schmidt.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions
OpenGLApplication.cpp File Reference

Defines the main class of mElite. More...

#include "GlobalParameters.h"
#include "OpenGLApplication.h"
#include "World.h"
#include "Textures.h"
#include "Objects.h"
#include "FrameCounter.h"

Go to the source code of this file.

Functions

int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
 WinMain is the main function where the execution begins. An application object is created which does the rest of the initialization.
 
LRESULT CALLBACK WndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 The window procedure handles the window messages for this application.
 

Detailed Description

Defines the main class of mElite.

Copyright Jan-Philipp Kappmeier, Melanie Schmidt

Definition in file OpenGLApplication.cpp.

Function Documentation

int WINAPI WinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPSTR  lpCmdLine,
int  nCmdShow 
)

WinMain is the main function where the execution begins. An application object is created which does the rest of the initialization.

Parameters
hInstanceHandle for current instance
hPrevInstanceHandle of the last instance
lpCmdLineParameter on t he command line
nCmdShowStatus of window
Returns
The Win32 return value

Definition at line 27 of file OpenGLApplication.cpp.

LRESULT CALLBACK WndProc ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)

The window procedure handles the window messages for this application.

If an window is being created we get the instance and save it. Otherwise all messages are passed to the message handler in the class.

Parameters
hWndHandle for the window
uMsgThe message that is to be handled
wParamAdditional information
lParamMore additional information

Definition at line 49 of file OpenGLApplication.cpp.