main.cpp File Reference

#include <windows.h>
#include <d3dx9.h>
#include "sources/system/GlobalsSystem.h"
#include "sources/math/includes.h"
#include "sources/graphic/includes.h"
#include "sources/math/MathTest.h"

Include dependency graph for main.cpp:

Go to the source code of this file.

Defines

#define APPNAME   "Joy4D Framework"
 Main program.

Functions

HWND InitWindow (void)
 This fucntion creates application window.
LRESULT CALLBACK MsgProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 This is application message procedure.
void TestFunction ()
 This is testing function which is called from WinMain before MainLoop.
void MainLoop (void)
 This is main loop function for our program.
int _stdcall WinMain (HINSTANCE h_instance, HINSTANCE h_prev_instance, LPSTR cmdline, int how_to_show)
 Entry-point function of program.


Define Documentation

#define APPNAME   "Joy4D Framework"
 

Main program.

Author: Tomas Mrkvicka xmrkvi03@stud.fit.vutbr.cz

Version: 1.0

Updates: --------

NEW VERSION DATE AUTHOR COMMENTS ----------- -------- ------ -------- 1.0 23-07-06 Tomas Mrkvicka File created.

Definition at line 23 of file main.cpp.

Referenced by InitWindow().


Function Documentation

HWND InitWindow void   ) 
 

This fucntion creates application window.

Definition at line 161 of file main.cpp.

References APPNAME, and MsgProc().

Referenced by WinMain().

Here is the call graph for this function:

void MainLoop void   ) 
 

This is main loop function for our program.

Definition at line 49 of file main.cpp.

References TRenderer::Clear(), FALSE, TGlobalsGraphic::GetRenderer(), TRenderer::Present(), and TRUE.

Referenced by WinMain().

Here is the call graph for this function:

LRESULT CALLBACK MsgProc HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam
 

This is application message procedure.

Definition at line 205 of file main.cpp.

Referenced by InitWindow().

void TestFunction  ) 
 

This is testing function which is called from WinMain before MainLoop.

Definition at line 39 of file main.cpp.

References TMathTest::AllTests().

Referenced by WinMain().

Here is the call graph for this function:

int _stdcall WinMain HINSTANCE  h_instance,
HINSTANCE  h_prev_instance,
LPSTR  cmdline,
int  how_to_show
 

Entry-point function of program.

Parameters:
h_instance handle on this process
h_prev_instance handle on previous process of this program
cmdline command-line arguments
how_to_show defines display properties of this window
Returns:
0 if program runs correctly

Definition at line 93 of file main.cpp.

References TGlobalsGraphic::Destroy(), TGlobalsMath::Destroy(), TGlobalsSystem::Destroy(), TGlobalsSystem::GetLogFile(), TGlobalsGraphic::Initialize(), TGlobalsMath::Initialize(), TGlobalsSystem::Initialize(), InitWindow(), MainLoop(), TestFunction(), and TLogFile::Write().

Here is the call graph for this function:


Generated on Wed Nov 28 22:38:49 2007 for Joy4D by  doxygen 1.4.6-NO