GMan and gg.IrrB3D

BlitzMax Forums/BlitzMax Programming/GMan and gg.IrrB3D

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.

use the getLightData() method of T_irrILightSceneNode. this returns the T_irrSLight structure that is controlling the light. look up SLight in the irrlicht manual to see the properties available. each property corrosponds to get*() methods in the blitzmax version. so:

getAmbientColor:T_irrSColorf()
getDiffuseColor:T_irrSColorf()
getSpecularColor:T_irrSColorf()

these return references to T_irrSColorf(). changing this directly changes the light color info.

radius has both a get() and set() since its a variable and not a type so:

getRadius:Float()
setRadius(newrad:Float)

HTH.