Game Development Community

Where is GFX->drawLine() ?

by Eric den Boer · in Torque Game Engine Advanced · 05/28/2009 (5:16 am) · 1 replies

Hi,

I'm trying to draw a 2D line on my screen, nothing special. In several forum posts I noticed that people use GFX->drawLine(). However, it seems that in TGEA 1.8, its gone.

Is there a substitute?

#1
05/28/2009 (5:21 am)
The 2D drawing methods are now in GFXDrawUtil, which can be access in this way:

GFX->getDrawUtil()->drawLine(...);