sdlDirect3D9GetAdapterIndex function

int sdlDirect3D9GetAdapterIndex(
  1. int displayIndex
)

Get the D3D9 adapter index that matches the specified display index.

The returned adapter index can be passed to IDirect3D9::CreateDevice and controls on which monitor a full screen application will appear.

\param displayIndex the display index for which to get the D3D9 adapter index \returns the D3D9 adapter index on success or a negative error code on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.1.

extern DECLSPEC int SDLCALL SDL_Direct3D9GetAdapterIndex( int displayIndex )

Implementation

int sdlDirect3D9GetAdapterIndex(int displayIndex) {
  final sdlDirect3D9GetAdapterIndexLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Int32 displayIndex),
      int Function(int displayIndex)>('SDL_Direct3D9GetAdapterIndex');
  return sdlDirect3D9GetAdapterIndexLookupFunction(displayIndex);
}