How to implement managed c++ Lighting?

Joined
Jul 27, 2004
Messages
6
Anyone know how to implement lighting in managed c++?

I tried to set the values of the dev->Lights->Item[0].LightType, but that

doesnt work. I created a new Light* light object, filled in the neccessary

values and enabled it light->Enabled = true; Nothing.

Any ideas are welcomed.


Thnx :confused:
 
Setting only the LightType property will not do much. Depending on the type of light you must set other properties too.
 
Hey Mutant,

Thnx for replying.

I tried to set not just the light type but all the other properties but it says

that the dev->Lights->Item[0] doesnt have a put method. What I

understand is that you cant set these light properties only read them. I

looked for a dev->SetLight() method but cant find one.
 
If I remember managed C++ does not support properties. Youd have to access properties by their accessor methods like: x->set_Item(0, value); x->get_Item(0);
 
Back
Top