Directional light and C# 2005

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Zak
Posts: 5
Joined: Fri Apr 27, 2007 8:04 am

Directional light and C# 2005

Post by Zak »

The omni light is simple and works but the directional light?
I have a tutorial with code in C++ but I don't succeed to trasform
in C# 2005

with reference:

Code: Select all

video::SLight& ldata; 
ldata = light->getLightData(); 
ldata.Type = ELT_DIRECTIONAL; 
ldata.Position = core::vector3df(0,-1,0); 
or

Code: Select all

video::SLight* ldata; 
ldata = &light->getLightData(); 
ldata->Type = ELT_DIRECTIONAL; 
ldata->Position = core::vector3df(0,-1,0);
Someone use C# 2005?
Post Reply