-------------------------------------------------------------------------------------- Description: Get display mode properties. Arguments: adapterIndex - index of display adapter (from 0 to GetAdapterCount) backBufferFormat - back buffer format modeIndex - display mode index (from 0 to GetDisplayModeCount) mode - (out) Tr2DisplayMode object with display mode properties Return Value: ALResult code
| 105 | // ALResult code of operation |
| 106 | // -------------------------------------------------------------------------------------- |
| 107 | ALResult Tr2VideoAdapters::GetDisplayMode( unsigned adapterIndex, |
| 108 | int /*Tr2RenderContextEnum::PixelFormat*/ backBufferFormat, |
| 109 | unsigned modeIndex, |
| 110 | Tr2DisplayMode** mode ) |
| 111 | { |
| 112 | *mode = nullptr; |
| 113 | Tr2DisplayModeInfo info; |
| 114 | CR_RETURN_HR( Tr2VideoAdapterInfo::GetAdapterMode( adapterIndex, PixelFormat( backBufferFormat ), modeIndex, info ) ); |
| 115 | Tr2DisplayModePtr result; |
| 116 | result.CreateInstance(); |
| 117 | result->m_mode = info; |
| 118 | *mode = result.Detach(); |
| 119 | return S_OK; |
| 120 | } |
| 121 | |
| 122 | // -------------------------------------------------------------------------------------- |
| 123 | // Description: |
nothing calls this directly
no test coverage detected