Drawing Primitives in the GUI
by Guimo · in Torque Game Engine · 01/12/2009 (3:52 pm) · 4 replies
I need to draw primitives (lines, circles, etc) in the GUI. Is there any way to do this in TGE?
About the author
#2
01/13/2009 (2:47 am)
MMMMMM not exactly what I was looking for... I guess I will need to implement my own... thanks Mick!
#3
01/13/2009 (10:45 pm)
Guimo, I submitted a GuiLineCtrl (http://www.garagegames.com/community/resources/view/10779) resource a long ways back, for just drawing a line from point A to B in the gui. It could easily be expanded to support other types of primitives; well, at least triangles and rectangles. Ryan is totally right about needing GLU for circles.
#4
01/14/2009 (10:19 am)
Guimo, I'm almost done moving my guiAdvBarHud to TGEA and I have a function to draw a circle. As soon as I test it I can send it your way.
Torque Owner Ryan Mick
Red Witch Entertainment
lines and squares are pretty easy. Look in the dlg file for the methods. Circles on the other hand are not so easy. I used the GLU resource for my guiAdvBarHud to draw partial circles.