01-25-2005, 11:46 AM
Quote:I believe Byref does that.
Code:Static array(10000) as glFloat
sub rotate(byref array() as glFloat)
glbegin glPOINT
glVertexf array(0), array(1)
glend
Hmmm... I could've sworn I tried that. I'll try again.
Well, I modified this code a couple of times, and I'm extremely tired right now... but it still doesn't work.
I just want to know if it will be possible to do this later... or if it is possible now, how can I do it.
Thanx!
Code:
DEFINT A-Z
declare Sub addone(BYREF NewA() as Integer)
type mytypeT
a(0 to 3) as Integer
end type
STATIC mytype(1 to 100) as mytypeT
for i = 1 to 5
addone mytype(i).a()
next i
For i = 1 to 5
For id=0 to 3
Print MyType(i).a(id)
Next
Next
sleep
SUB addone(BYREF NewA() as Integer)
For id = 0 to 3
NewA(i)= 1 + Int(rnd*10)
next
end SUB