I get an error when creating the device.
I have references to
Microsoft.DirectX.Direct3D
Microsoft.DirectX
Micosoft.DirectX.Direct3DX.
And I also included the namesaces
using namespace Microsoft:irectX;
using namespace Microsoft:irectX:irect3D;
It seems to me that youre not setting enough flags for the PresentParameters. Mine looks something like this (just ignore the vb and look at the main source :
Protected D3Dpp As PresentParameters = Nothing Protected DP As DisplayMode = Nothing
Could you please specifically state the error?
Also, I dont know why the PresentParams is an array (maybe its supposed to be in C++?)
Whats the error in your code?
Yes, as far as I know in MC++ the PresentParameters is an array. Theres a few differences from VB and CSharp.
error C3635: Microsoft.DirectX.PrivateImplementationDetails.IDirect3DDevice9: undefined native type used in Microsoft.DirectX.Direct3D.Device; imported native types must be defined in the importing source code
error C3377: Microsoft.DirectX.Direct3Device..ctor : cannot import method - a parameter type or the return type is inaccessible
Note:
I changed the :: for . because it was not letting me post the reply
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.