Porting GL to GFX?
by John McGlamory · in Torque Game Engine Advanced · 10/07/2006 (2:01 pm) · 5 replies
Awhile back I found a thread or a resource that had a list of GL functions and their GFX equivalents to help people port code. I could have sworn I bookmarked it, but I seem to have lost it. I've spent awhile now searching the site for many combinations using the following keywords: 'tse dgl gfx gl directx porting' but nothing showed up.
I clearly remember it being in a reponse to a thread or resource with a list comparing the fuctions. Can anyone help me find it? I am trying to port some old resources to TSE and I am not the best coder, so any guides I can find, the better!
Thanks in advance!
I clearly remember it being in a reponse to a thread or resource with a list comparing the fuctions. Can anyone help me find it? I am trying to port some old resources to TSE and I am not the best coder, so any guides I can find, the better!
Thanks in advance!
About the author
I am mainly an artist, but I love tinkering with engines like T3D, TGEA, TGE, T2D, Leadwerks and ShiVa. I know enough about scripting and coding to follow good directions.
#2
10/08/2006 (7:23 am)
That's it! Thank you! Now maybe I can get some things ported to TSE. I really appreciate you showing me this again.
#3
Any chance you could post it here (unless it constains anything RTS-Kit specifik ofcourse) ?
pleeease :)
11/20/2006 (4:45 am)
That post is restricted to RTS-kits owners only :(Any chance you could post it here (unless it constains anything RTS-Kit specifik ofcourse) ?
pleeease :)
#4
11/20/2006 (5:53 am)
Aye, kind of a pointless link.
#5
GFX->setLightingEnable(false);
glPushMatrix();
GFX->pushWorldMatrix();
dglMultMatrix(&getRenderTransform());
GFX->multWorld(getRenderTransform());
glDisable(GL_DEPTH_TEST);
GFX->setZEnable(false);
glColor3f(1, 1, 1);
wireCube(Point3F(0.1,0.1,0.1),mDataBlock->massCenter);
GFX->drawWireCube(Point3F(0.1,0.1,0.1),mDataBlock->massCenter, ColorI(255, 255, 255));
glPopMatrix();
GFX->popWorldMatrix();
dglMultMatrix(-----);
GFX->multWorld( const MatrixF &mat )
dglProjectRadius
GFX->projectRadius
dglDrawLine( x1, y1, x2, y2, colour );
GFX->drawLine( x1, y1, x2, y2, colour );
01/01/2007 (6:35 am)
GlDisable(GL_LIGHTING);GFX->setLightingEnable(false);
glPushMatrix();
GFX->pushWorldMatrix();
dglMultMatrix(&getRenderTransform());
GFX->multWorld(getRenderTransform());
glDisable(GL_DEPTH_TEST);
GFX->setZEnable(false);
glColor3f(1, 1, 1);
wireCube(Point3F(0.1,0.1,0.1),mDataBlock->massCenter);
GFX->drawWireCube(Point3F(0.1,0.1,0.1),mDataBlock->massCenter, ColorI(255, 255, 255));
glPopMatrix();
GFX->popWorldMatrix();
dglMultMatrix(-----);
GFX->multWorld( const MatrixF &mat )
dglProjectRadius
GFX->projectRadius
dglDrawLine( x1, y1, x2, y2, colour );
GFX->drawLine( x1, y1, x2, y2, colour );
Torque Owner Johnathan Moore