Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Windows.cpp File Reference

#include "Windows.h"

Include dependency graph for Windows.cpp:

Go to the source code of this file.

Functions

LRESULT CALLBACK DlgProcSetup (HWND hWndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
LRESULT CALLBACK WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)


Function Documentation

LRESULT CALLBACK DlgProcSetup HWND  hWndDlg,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam
 

Windows.cpp

Author: Petter Alstermark, petter@alstermark.com

case 0: g_fullscreenWidth = 640; g_fullscreenHeight = 480; g_bitsPerPixel = 16; MessageBox(hWndDlg, "640x480 - 16bit","Notification", MB_OK); break;

case 2: g_fullscreenWidth = 800; g_fullscreenHeight = 600; g_bitsPerPixel = 16; MessageBox(hWndDlg, "800x600 - 16bit","Notification", MB_OK); break;

case 4: g_fullscreenWidth = 1024; g_fullscreenHeight = 768; g_bitsPerPixel = 16; MessageBox(hWndDlg, "1024x768 - 16bit","Notification", MB_OK); break;

g_windowLeft = 10; g_windowRight = 800 + g_windowLeft; g_windowTop = 10; g_windowBottom = 600 + g_windowTop;

Definition at line 14 of file Windows.cpp.

References g_bitsPerPixel, g_fullscreen, g_fullscreenHeight, g_fullscreenWidth, g_running, g_windowBottom, g_windowLeft, g_windowRight, g_windowTop, IDC_FULLSCREEN, and IDC_RESOLUTION.

Referenced by WinMain().

int WINAPI WinMain HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPSTR  lpCmdLine,
int  nShowCmd
 

Definition at line 207 of file Windows.cpp.

References app, Application::checkMouse(), Application::createWindow(), Application::deInitialize(), Application::destroyWindow(), DlgProcSetup(), Application::drawFrame(), g_fps, g_frames, g_frameTime, g_fullscreen, g_fullscreenHeight, g_fullscreenWidth, g_middleX, g_middleY, g_running, g_time, g_toggleFullscreen, g_visible, g_windowBottom, g_windowLeft, g_windowRight, g_windowTop, Timer::getFPS(), Timer::getFrameTime(), Application::hWnd, IDC_TARGET, IDD_SETUP, IDI_ICON1, Timer::init(), initGlobals(), Application::initialize(), Application::load(), LOG_CLOSE, LOG_ERROR, LOG_FILE, LOG_SUCCESS, Application::unload(), Timer::update(), Application::update(), and WndProc().

Here is the call graph for this function:

LRESULT CALLBACK WndProc HWND  hWnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam
 

Definition at line 116 of file Windows.cpp.

References app, g_fps, g_fullscreen, g_height, g_middleX, g_middleY, g_running, g_toggleFullscreen, g_visible, g_width, g_windowBottom, g_windowLeft, g_windowRight, g_windowTop, Application::handleChar(), Application::keyDown(), MOUSE_LEFT, MOUSE_RIGHT, Application::setKey(), Application::setMouseButton(), Application::setViewport(), and WM_TOGGLEFULLSCREEN.

Referenced by WinMain().

Here is the call graph for this function:


Generated on Sun Jun 5 15:49:17 2005 for Defacto by  doxygen 1.4.3