[IronPython] Direct3D IronPython Sample

Dave Fugate dfugate at microsoft.com
Tue Sep 26 20:24:09 CEST 2006

The Microsoft.DirectX.Direct3D namespace is indeed comprised of more than one assembly. This is apparent by viewing the following link - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_m/directx/ref/ns/microsoft.directx.direct3d/c/d3dx/d3dx.asp - which shows a class defined in the Microsoft.DirectX.Direct3DX assembly, yet it is in the Microsoft.DirectX.Direct3D namespace. I believe the Direct3DX assembly includes helper classes for Direct3D.

As for your problem with "'PresentParameters" having no attribute 'IsWindowed', this is because the DirectX 9 end-user runtime does not define an "IsWindowed" property for Microsoft.DirectX.Direct3D.PresentParameters (see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_m/directx/ref/ns/microsoft.directx.direct3d/c/presentparameters/presentparameters.asp), while the SDK does.

Now if you look closely at the MSDN link in the paragraph above, you'll notice that PresentParameters does have a "Windows" boolean property. If you change "IsWindowed" to "Windowed" in framework.py the module will get a little further before it crashes (again on a name change).  The reason the sample works with the SDK and not the DirectX 9.0 end-user runtimes is most likely the fact that the August DirectX SDK includes a public pre-release of Direct3D 10 as mentioned on the download page. Provided Direct3D 10's APIs do not change much between the August pre-release and the final release, the sample will work sans modifications then. In the meantime, I'll look into whether the needed assemblies included with the SDK are redistributable.

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of psi
Sent: Saturday, September 23, 2006 3:31 PM
To: users at lists.ironpython.com
Subject: Re: [IronPython] Direct3D IronPython Sample

i've also found;

by seaching msdn for info on the missing objects/types and noting the

bit by bit more of the framework.py script runs, without any new
downloads, however;

the next missing object/type is Direct3D.PresentParameters, which is in
 Microsoft.WindowsMobile.Directx.dll ???  along with Direct3D.Device,
(also required)

my machine has Microsoft.WindowsMobile.Directx.xml (in the .net 2
directory ) but not the dll.

and this seems to be part of   Microsoft Windows CE .NET 4.2 ???

have to say there seems to be a story here but im blowed if i can see
it, does anyone have any idea what this is all about?

users mailing list
users at lists.ironpython.com

More information about the Ironpython-users mailing list