Best way to implement Hardware Cursor
by Vladan Markovic · in Torque Game Builder · 01/24/2012 (8:49 pm) · 0 replies
Hi,
We need hardware cursor in our game, the opengl one is lagging on game loading and intense calculation in game, and hardware one is much smoother generally.
I noticed that when i am using TorgueGameBuilder.exe to run game, which have TORQUE_TOOL defined, then game is using Hardware Cursor.
Is it safe to modify the WinWindow.cc on every line:
and comment the "// #ifndef TORQUE_TOOLS" thus enabling ShowCursor(TRUE) ?
There is at least 8~10 calls to "#ifndef TORQUE_TOOLS while(ShowCursor(TRUE) < 0);" in the WinWindow.cc
and im not really sure is it safe to enable them all.
Or is there some better way, maybe some call from script, or maybe just setting while(ShowCursor(TRUE) < 0) once in Init method or something.
The game is already in publishers hands and its matter of weeks when it going to be released, so i am really unsure about making those big changes in last moment.
So if anyone can help me with best / safest way to do this it would be great.
Thank You.
We need hardware cursor in our game, the opengl one is lagging on game loading and intense calculation in game, and hardware one is much smoother generally.
I noticed that when i am using TorgueGameBuilder.exe to run game, which have TORQUE_TOOL defined, then game is using Hardware Cursor.
Is it safe to modify the WinWindow.cc on every line:
#ifndef TORQUE_TOOLS
while(ShowCursor(TRUE) < 0);
#endif // TORQUE_TOOLSand comment the "// #ifndef TORQUE_TOOLS" thus enabling ShowCursor(TRUE) ?
There is at least 8~10 calls to "#ifndef TORQUE_TOOLS while(ShowCursor(TRUE) < 0);" in the WinWindow.cc
and im not really sure is it safe to enable them all.
Or is there some better way, maybe some call from script, or maybe just setting while(ShowCursor(TRUE) < 0) once in Init method or something.
The game is already in publishers hands and its matter of weeks when it going to be released, so i am really unsure about making those big changes in last moment.
So if anyone can help me with best / safest way to do this it would be great.
Thank You.