Sign in to follow this  
Swamii

[.net] MDX October SDK released...what happened to lights?

Recommended Posts

Swamii    150
Hi guys, I just installed the DirectX October SDK, which includes the beta MDX assemblies for .NET 2.0. Has anyone played with this? I am amazed at the amount of churn they've done, ripping out all sorts of APIs, replacing or renaming others without warning...yikes. One question I have: what happened to lights? You used to be able to specify the type of light when you create one: directional light, spot light, point light, etc. But now, the LightType enum is ...empty. The constructor for Light doesn't take any parameters, and I don't see any way to change the actual type of light. The only thing I see is light.LightType, which can be set to an LightType enum constant, however, the LightType enum is empty!

Share this post


Link to post
Share on other sites
Nypyren    12074
No wonder none of the Managed DirectX help files had anything useful in them... they knew ahead of time that they were going to rip stuff apart.

I haven't looked, but I have a guess: Did they create derived classes for the major types of lights, like PointLight, DirectionalLight, etc?

Share this post


Link to post
Share on other sites
Krisc    494
Such a big release, I think I am going to wait until I get my hands on Longhorn to download this one. I have enough problems with the August SDK.

Share this post


Link to post
Share on other sites
thezbuffer    706
LightEnum being empty is one of the uninentional ommissions.

Try casting int's
LightType.Directional becomes (LightType)0
LightType.Point becomes (LightType)1
LightType.Spot becomes (LightType)2

However there is a lot more accidentally missing that this enum so good luck with the rest of your code.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this