How to implement managed c++ Lighting?

Grasshopper_NET

Newcomer
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

doesn't 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:
 
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] doesn't have a 'put' method. What I

understand is that you can't set these light properties only read them. I

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