| Home | About | Links | Problems | My Graphics BaseCode | Windows Controllers | 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.
The frame timer reads the system time and maintains the frames per second counter.
FrameTimer.h, Web Version
FrameTimer.cpp, Web Version
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.
EventHandler.h, Web Version
EventHandler.cpp, Web Version
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.
ScreenCapture.h, Web Version
ScreenCapture.cpp, Web Version
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:
Avi_Utils.h, Web Version
Avi_Utils.cpp, Web Version
WindowManager handles creating and managing the application's main window.
WindowManager.h, Web Version
WindowManager.cpp, Web Version
The WinMain function itself. Just creates the God class and runs it. See God.h/God.cpp.
WinMain.h, Web Version
WinMain.cpp, Web Version
last updated: May 13th 2005 © 2005 by Matthew Fisher