whats wrong with this

BlitzMax Forums/BlitzMax Beginners Area/whats wrong with this

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Ok not alot of time to mess with bmax atm, but was wanting to try somthing.. why o why isnt this drawing the poly

Type trimodel
Field tri#[5]
Field groupname$
Field parent
End Type
Global trimodel_list:TList=New TList


t:trimodel=New trimodel
trimodel_list.AddLast t
t.tri[0]=0.0
t.tri[1]=0.0
t.tri[2]=100.0
t.tri[3]=100.0
t.tri[4]=0.0
t.tri[5]=100.0
t.groupname$="mypoly"

Graphics 640,480
While Not KeyHit(KEY_ESCAPE)
Cls
SetColor 255,255,255
DrawPoly t.tri
DrawText t.groupname$,20,20
Flip
Wend