Gui Portability
by Charlie Malbaurn · in Torque Game Engine · 11/01/2004 (10:37 am) · 4 replies
Hey all.
I have a quick question about using GUI controls.
If I code something in non platform specific C++ using the GUI controls, will it be able to run on all platforms supported by Torque? Or will there still need to be changes made?
I want to work on something to add to the engine and would like it to be used on all platforms but I do not, or never plan to, have a Unix/Linux or OSX machine.
Thanks,
Charlie
I have a quick question about using GUI controls.
If I code something in non platform specific C++ using the GUI controls, will it be able to run on all platforms supported by Torque? Or will there still need to be changes made?
I want to work on something to add to the engine and would like it to be used on all platforms but I do not, or never plan to, have a Unix/Linux or OSX machine.
Thanks,
Charlie
About the author
#2
I'm not the worlds best C++ person to begin with so it should be fun. Most of the things that I would really need to code in C++ are mostly simple text parsing and the sort.
As far as the portable library... I didn't even know there was a portable library!So I guess you can see where this is going.
Is it documentated? I guess ill hit the docs and find out!
Time to crack open the books
Edit: If you mean using torques functions, methods, classes and such, then I know what you mean. If not then I'm lost
11/01/2004 (10:49 am)
Cool.I'm not the worlds best C++ person to begin with so it should be fun. Most of the things that I would really need to code in C++ are mostly simple text parsing and the sort.
As far as the portable library... I didn't even know there was a portable library!So I guess you can see where this is going.
Is it documentated? I guess ill hit the docs and find out!
Time to crack open the books
Edit: If you mean using torques functions, methods, classes and such, then I know what you mean. If not then I'm lost
#3
11/01/2004 (3:01 pm)
TGE reimplements the standard Library with portable functions. strcpy becomes dstrcpy and so forth. check out in the docs. But since it's text only, you won't have much problems with it.
#4
Thanks again for all your help
11/01/2004 (10:11 pm)
Text mostly. Yeah I'm actually having fun going through the docs right now. Thanks again for all your help
Torque Owner Bruno Grieco
If you code it in good, standard, C++ using torque's portable library, chances are that it will work properly.
OTOH, I caught a strange Endian issue (at least I think it's endian related) on the artificial horizon GUI I found on the resources. On Macs they work fine out of the box, but on PCs the compass points to the opposite way, you have to code "yaw = -yaw;" to make it work right. So I made a define in the code that puts this line on PCs dists.