Game Development Community

Tse Gfx Code

by Jacob · in Torque Game Engine Advanced · 09/30/2005 (8:08 am) · 8 replies

I had made a post here after I found out that one of the resources I was using in TGE didn't port to TSE. The issue is still un-resolved and I would like to know if there is or will be any detailed guidelines that will explain how to convert TGE's dgl calls to the new TSE GFX calls that would enable certain TGE resources to work with TSE. I would love to port my project to TSE but I have put in quite a few additions that rely on dgl calls. I would be grateful for such a guideline or any help from anyone! :)

#1
09/30/2005 (9:46 am)
The best "guide" would be to look at the other Gui controls in TSE and see how they are implemented.

But, you can basically use the PrimBuilder:: namespace to do OpenGL style rendering, which makes porting things pretty quick.
#2
09/30/2005 (9:51 am)
@Jacob: I ported that Drag Drop gui stuff. Drop me an email and I'll send you the files. The GFX stuff isn't as hard as you think once you start working with it. It's pretty close to DGL.
#3
09/30/2005 (10:06 am)
@Ted - e-mail sent - Thank You!

@ Brian - Thank You for the suggestion!

Maybe there will be some info on this topic when TDN is up... :)
#4
09/30/2005 (7:24 pm)
TSE's GFX layer is a milestone well in the future, which has been discussed a few times (the dynamic and moving target nature of the OpenGL 2.0 standard combined with only half-efforted backing of it by various committee members are the two primary reasons it's been delayed), but there aren't any plans to give "how-to"'s on it...when the resources are available to do that, they will most likely be the one(s) working on the GFX layer itself.

Now, if any of the community members such as Ted jump in, you should be in good hands!
#5
10/18/2005 (7:42 pm)
As I just finished converting several of these as well I thought I would toss this out. As Ted and Brian stated the steps are pretty simple, but to get some started I will post a few examples here. Hope some of it helps.

dglDrawRect(updateRect, mFrameColor);
becomes
GFX->drawRect(updateRect, mFrameColor);  //Note the lower case after the GFX-> which is an easy miss for new commands.

Many of these type of direct transfers seem to exist, and although I am a long ways from converting everything I started before I was happy to see how much sense some of these basic changes to the render engine made. Hopefully this will help some others getting started crossing over these, as stated above looking into the new files for these gui and rendering routines seems to be a great way to see the new changes needed.
#6
10/19/2005 (5:33 am)
Thanks Mark for posting that example!
#7
02/26/2006 (3:16 pm)
I too am looking to convert the drag and drop from tge to tse, Can anyone who solved it pass me the c++?

Vince
#8
07/25/2006 (7:57 pm)
I third that motion Vince, someone should post it as a resource for sure.