02-08-2005, 03:15 AM
I woukd like to ask you guys about this possible feature that I found very useful to simplify coding or values assignment into UDTs or Arrays. Would you guys agree it's useful if something like this exist in FB?
It's like fitting a 'rpg room' data into a complex UDT or arrays. For game, opengl or dx programing should be a relief if we got this feature.
[syntax="QBasic"]
Type AXIS
X AS SINGLE
Y AS SINGLE
Z AS SINGLE
End Type
Type LIGHT
Ambients AS AXIS
SunLight AS AXIS
Fog AS AXIS
End Type
'...
DIM DayLight AS LIGHT
DayLight = { 0.3, 0.3, 0.3, _
3, 3, 3, _
1.5, 1.5, 1.5 }
DIM a(7) AS BYTE
a() = { 0,1,2,3,4,5,6 }
'...
[/syntax]
Any thoughts?
It's like fitting a 'rpg room' data into a complex UDT or arrays. For game, opengl or dx programing should be a relief if we got this feature.
[syntax="QBasic"]
Type AXIS
X AS SINGLE
Y AS SINGLE
Z AS SINGLE
End Type
Type LIGHT
Ambients AS AXIS
SunLight AS AXIS
Fog AS AXIS
End Type
'...
DIM DayLight AS LIGHT
DayLight = { 0.3, 0.3, 0.3, _
3, 3, 3, _
1.5, 1.5, 1.5 }
DIM a(7) AS BYTE
a() = { 0,1,2,3,4,5,6 }
'...
[/syntax]
Any thoughts?
= inc(¢)