Game Development Community

Startup of Torque Engine on Windows

by Chad Naeger · in Torque Game Engine · 02/03/2002 (8:56 am) · 3 replies

I was trying to determine the startup process for the Torque engine on Windows.

So I put a breakpoint in WinMain. However, this breakpoint is never hit.

I was wondering if anyone knows why this is. If I put a breakpoint on the run method in main, that breakpoint is hit.

Thanks,
Chad

#1
02/03/2002 (9:58 am)
Winmain is probably in there to stop windows compilers complaining about an entry point.

The game is cross platform, so i guess it just uses main so that it doesnt become platform dependant.

Phil.
#2
02/03/2002 (10:05 am)
Try putting a breakpoint in winWindow.cc, main() fn (approx line 1124).

d
#3
02/03/2002 (11:27 am)
The project for compiling the windows version of the demo is set to compile/link as a console application. Using the project options you can reset it to compile/link as a windowed application.

Either way, the console entry point is main() or WinMain for a windowed app in winWindow.cc