Game Development Community

Can I add C++ classes to the TGE?

by Zehne Ziba Corporation · in General Discussion · 05/26/2008 (7:47 am) · 5 replies

Hi there
First of all, everyone knows that each engine has limited features. I want to know if I can add C++ objects to TGE and add more features to the engine.
We want to create commercial software and add the search capability to our object. For example the user adds a data base to our product and uses a menu to search the name of the objects in the 3D environment. If our product can find the name of that object (a concrete door for example), it will list the features of that object and the user can see that object in the 3D environment. Can Torque Game Engine handle this feature? Again note that the user should enter the Farsi fonts, so I should be able to handle those fonts-read them, render them, search them and so on. As you know, C++ has a wchar_t* to deal with the Unicode fonts. Is there such a type in TGE? Can TGE handle the Unicode fonts?
Regards
Ehsan

#1
05/26/2008 (9:49 am)
Yes - once you license the engine, you get the C++ source, and can add new classes to it. You can expose these to the scripting language, and use your new classes in script also. TGE and TGEA use unicode internally.
#2
05/26/2008 (10:11 am)
Quote: "TGE and TGEA use unicode internally"
What do you mean from "internally" exactly?
Farsi language is like Arabic language except that it has 4 more alphabets. They are written from right to left and they must have some algorithms for connecting the alphabets( Some alphabets stick to some other alphabets and so their shape changes when they stick together). I have written a class to render the Farsi fonts using OpenGL. So do I need to add my class to TGE in order to render the Farsi fonts?
Ehsan
#3
05/26/2008 (10:11 am)
Quote:
TGE and TGEA use unicode internally.

Although not fully.
#4
05/26/2008 (10:23 am)
Note that I can write my Farsi text in VC++ dialogue boxes with no error. But the TGE dialogue boxes can't handle and show my Farsi sentences correctly!
#5
05/26/2008 (11:09 am)
TGE and TGEA currently do not support text orientations other than left-to-right. I suppose you would have to update all GUI controls using text in order to support this. Due to its heritage, there is a lot of manual and explicit string parsing/handling code in Torque.