Matt's Source Code Portal

Home About Links Problems My Graphics BaseCode Contact

Windows Controllers is just a folder that contains source and headers included by Engine.cpp or Engine.h; files in the directory are not directly compiled and linked into the project. These files handle the interaction between the application and Windows. This includes files that contain WinMain and create the main application window. There is also a frame timer and a screen capture mechanism.

FrameTimer

The frame timer reads the system time and maintains the frames per second counter.

x FrameTimer.h, Web Version
x FrameTimer.cpp, Web Version

EventHandler

Creating a new window involves having a callback function, WndProc, that is called whenever Windows has an event to send to your window/application. EventHandler contains the WndProc file as well as the global array of keys that tells which keys are current pressed/depressed.

x EventHandler.h, Web Version
x EventHandler.cpp, Web Version

ScreenCapture

ScreenCapture is a class that handles capturing the current screen and automatically compressing it in an acceptable quality "real-time" AVI file. Can use any codec installed on your computer.

x ScreenCapture.h, Web Version
x ScreenCapture.cpp, Web Version

Avi_Utils

ScreenCapture is really just a casing for code called Avi_Utils and written by Lucian Wischik; you can find it on the web here. The files themselves are copied here:

x Avi_Utils.h, Web Version
x Avi_Utils.cpp, Web Version

WindowManager

WindowManager handles creating and managing the application's main window.

x WindowManager.h, Web Version
x WindowManager.cpp, Web Version

WinMain

The WinMain function itself. Just creates the God class and runs it. See God.h/God.cpp.

x WinMain.h, Web Version
x WinMain.cpp, Web Version


last updated: May 13th 2005   © 2005 by Matthew Fisher