Alpha Engine: AESystem.h File Reference

AlphaEngine

AESystem.h File Reference

Header file for the system library. More...

Go to the source code of this file.

Functions

s32 AESysInit (HINSTANCE hAppInstance, s32 show, s32 WinWidth, s32 WinHeight, s32 CreateConsole, u32 FrameRateMax, LRESULT(*pWinCallBack)(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp))
 Initialize the Alpha Engine. More...
 
void AESysReset ()
 Reset the Alpha Engine. More...
 
void AESysExit ()
 Free the Alpha Engine. More...
 
void AESysFrameStart ()
 Start of frame. More...
 
void AESysFrameEnd ()
 End of frame. More...
 
HWND AESysGetWindowHandle ()
 Get the handle to the window. More...
 
void AESysSetWindowTitle (const s8 *pTitle)
 Set the title of the window. More...
 
s32 AESysDoesWindowExist ()
 Check if the window has been closed. More...
 

Variables

HINSTANCE ghAESysAppInstance
 
HWND gAESysWindowHandle
 
WNDCLASS winClass
 
const s8gpAESysWinTitle
 
const s8gpAESysWinClassName
 
s32 gAESysAppActive
 

Detailed Description

Header file for the system library.

Project: Alpha Engine
Author
Sun Tjen Fam
Date
January 31, 2007
Copyright
Copyright (C) 2013 DigiPen Institute of Technology. Reproduction or disclosure of this file or its contents without the prior written consent of DigiPen Institute of Technology is prohibited.

Definition in file AESystem.h.

Function Documentation

s32 AESysDoesWindowExist ( )

Check if the window has been closed.

Return values
s32Return 1 if the window exist. Else return 0.
void AESysExit ( )

Free the Alpha Engine.

Call this function once at the end of the program to free the system.

Return values
voidNo return.
void AESysFrameEnd ( )

End of frame.

Call this function once at the end of the frame to inform the system the current frame is ending.

Return values
voidNo return.
void AESysFrameStart ( )

Start of frame.

Call this function once at the start of the frame to inform the system a new frame is starting.

Return values
voidNo return.
HWND AESysGetWindowHandle ( )

Get the handle to the window.

Return values
HWNDReturns the handle to the window.
s32 AESysInit ( HINSTANCE  hAppInstance,
s32  show,
s32  WinWidth,
s32  WinHeight,
s32  CreateConsole,
u32  FrameRateMax,
LRESULT(*)(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)  pWinCallBack 
)

Initialize the Alpha Engine.

Call this function once at the start of the program to initialize the system.

Parameters
[in]hAppInstanceHandle to the current instance of the application.
[in]showSet how the the window is to be shown.
[in]WinWidthSet the width of the window.
[in]WinHeightSet the height of the window.
[in]CreateConsoleInput 1 if a console window should be created. Else input 0.
[in]FrameRateMaxSet the maximum frames per second.
[in]pWinCallBackPointer to a callback function. May be left null if not needed.
Return values
s32Return 1 if initialization is successful. Else return 0.
void AESysReset ( )

Reset the Alpha Engine.

Call this function when changing gamestates to reset the system.

Return values
voidNo return.
void AESysSetWindowTitle ( const s8 pTitle)

Set the title of the window.

Parameters
[in]pTitlePointer to a null-terminated string to set as the title of the window.
Return values
voidNo return.

Variable Documentation

s32 gAESysAppActive
HWND gAESysWindowHandle
HINSTANCE ghAESysAppInstance
const s8* gpAESysWinClassName
const s8* gpAESysWinTitle
WNDCLASS winClass
Generated on Sat Jan 4 2014 02:06:22 for Alpha Engine by   doxygen 1.8.5