Jump to content

  • Log In with Google      Sign In   
  • Create Account


Dave Hunt

Member Since 30 Dec 2002
Offline Last Active Yesterday, 08:16 PM
-----

Posts I've Made

In Topic: problem gamemaneger

28 July 2014 - 01:53 PM

You need to change the code so that it no longer uses PlayerIndex. You've already done that in some of the methods (e.g. changing GetState(PlayerIndex) to GetState(), commenting out some reference to PlayerIndex variables). You need to do that in all methods where any variable/parameter of type PlayerIndex is referenced.


In Topic: problem gamemaneger

28 July 2014 - 11:43 AM

The type "PlayerIndex" doesn't exist in SharpDX. You need to get rid of all references to it in the code.

 

The Viewport property of GraphicsDevice returns a SharpDX.ViewportF, not a SharpDX.Viewport.


In Topic: IDirect3D9::GetAdapterDisplayMode

21 July 2014 - 02:35 PM

If it's enabled, it gets a number, if it's completely disabled somehow, then it doesn't. If it gets a number, then it's accessible. DirectX won't skip numbers for disabled devices, it will ignore them completely. There won't be a case where ordinal #2 is valid as an argument to the various DirectX methods and ordinal #1 is not.

 

What is the returned display mode? I have no idea, but you can bet it will be a valid one.


In Topic: IDirect3D9::GetAdapterDisplayMode

21 July 2014 - 02:19 PM

GetAdapterDisplayMode() will return a mode for every adapter in the range 1..GetAdapterCount(). If GetAdapterCount() can see it, then it is fair game for access.


In Topic: DLL Import Failure

17 July 2014 - 08:49 AM

Right, but what if I wanted to use 2 DLLs in the same project, and one is 32 bit and the other is 64 bit, is it impossible to make any program that will use both DLLs?  That seems absurd.

 


64-bit processes can't load 32-bit DLLs, and vice versa.

PARTNERS