GAA! structures...
Posted: Sun Dec 28, 2003 8:12 pm
it seams every time i use sturctures i get some weird error that either doesn't make sinces or does apply to that part of the code 
so i been working on a 3d engine (have been for some time now) and i rewriting it so i can use everything i learned so far in it, live stuctures.
this code creates the structure and there not problems in here it after this is has problems...
now after this procedure if it encouters "3d_data(some_number)\any_sturcture" it won't complie because it "Not a valid Decimal number" and i trying to figure wtf does that mean and why does it do it i spent 4 hours trying to figure out were it getting that error from...so please could you point out what setting it off...
so i been working on a 3d engine (have been for some time now) and i rewriting it so i can use everything i learned so far in it, live stuctures.
this code creates the structure and there not problems in here it after this is has problems...
Code: Select all
Procedure init(h,w,d,title.s,rr,fr)
#HW_limit=1000
Global object_count
Structure 3d_Object
object_x.l
object_y.l
object_z.l
face_count.l
face_vertex_p0.w[#HW_limit]
face_vertex_p1.w[#HW_limit]
face_vertex_p2.w[#HW_limit]
vertex_count.l
vertex_posion_x.l[#HW_limit]
vertex_posion_y.l[#HW_limit]
vertex_posion_z.l[#HW_limit]
draw.b
EndStructure
Dim 3d_data.3d_Object(#HW_limit)
InitSprite()
InitSound()
InitMouse()
InitKeyboard()
OpenScreen(w,h,d,title)
SetRefreshRate(rr)
SetFrameRate(fr)
EndProcedure