Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2015-01-09 22:57:22
Size: 1641
Comment: Created page using content from header file.
Revision 2 as of 2015-07-18 19:21:26
Size: 1741
Comment: Added to Remarks.
Deletions are marked like this. Additions are marked like this.
Line 44: Line 44:
Before SDL 2.0.4 this function did not return a value. Since SDL 2.0.4 it returns an SDL_bool.

DRAFT

SDL_DXGIGetOutputInfo

Use this function to get the DXGI Adapter and Output indices for the specified display index.

Syntax

SDL_bool SDL_DXGIGetOutputInfo(int  displayIndex,
                               int* adapterIndex,
                               int* outputIndex)

Function Parameters

displayIndex

the display index for which to get both indices

adapterIndex

a pointer to be filled in with the adapter index

outputIndex

a pointer to be filled in with the output index

Return Value

Returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

The DXGI Adapter and Output indices can be passed to EnumAdapters and EnumOutputs respectively to get the objects required to create a DX10 or DX11 device and swap chain.

Before SDL 2.0.4 this function did not return a value. Since SDL 2.0.4 it returns an SDL_bool.

Version

This function is available since SDL 2.0.2.


CategoryAPI, CategorySystem

None: SDL_DXGIGetOutputInfo (last edited 2015-07-18 19:21:26 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit