mElite
1.0
An Elite clone based on TextElite by Jan-Philipp Kappmeier and Melanie Schmidt.
|
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. | |
Defines the main class of mElite.
Copyright Jan-Philipp Kappmeier, Melanie Schmidt
Definition in file OpenGLApplication.cpp.
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.
hInstance | Handle for current instance |
hPrevInstance | Handle of the last instance |
lpCmdLine | Parameter on t he command line |
nCmdShow | Status of window |
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.
hWnd | Handle for the window |
uMsg | The message that is to be handled |
wParam | Additional information |
lParam | More additional information |
Definition at line 49 of file OpenGLApplication.cpp.