examples/Qt/ISFEditor/ISFEditor_app/Spout/SpoutGLDXinterop.cpp
// Set DX9 off or no with a DX11 compatibility check
// Returns false if SetDX9(false) failed due to DX11 copmaptibility check

Set DX9 off or no with a DX11 compatibility check
Returns false if SetDX9(false) failed due to DX11 copmaptibility check
Set DX9 off or no with a DX11 compatibility check Returns false if SetDX9 ( false ) failed due to DX11 copmaptibility check
bool spoutGLDXinterop::UseDX9(bool bDX9)
{
	bool bRet = false;
	if(bDX9 == true) {
		m_bUseDX9 = bDX9;
		bRet = true;
	}
	else if(DX11available()) {
		m_bUseDX9 = false;
		bRet = true;
	}
	else {
		m_bUseDX9 = true;
		bRet = false;
	}
	if(!spoutdx.WriteDwordToRegistry((DWORD)m_bUseDX9, "Software\\Leading Edge\\Spout", "DX9")) {
		return false;
	}
	return bRet;
}
bool spoutGLDXinterop :: UseDX9 ( bool bDX9 ) { bool bRet = false ; if ( bDX9 == true ) { m_bUseDX9 = bDX9 ; bRet = true ; } else if ( DX11available ( ) ) { m_bUseDX9 = false ; bRet = true ; } else { m_bUseDX9 = true ; bRet = false ; } if ( ! spoutdx . WriteDwordToRegistry ( ( DWORD ) m_bUseDX9 , " \\ \\ " , " " ) ) { return false ; } return bRet ; }
Set DX9 off or no with a DX11 compatibility check
Returns false if SetDX9(false) failed due to DX11 copmaptibility check
Set DX9 off or no with a DX11 compatibility check Returns false if SetDX9 ( false ) failed due to DX11 copmaptibility check
// Set to DirectX 9
 // DirectX 11 is the default but is checked by OpenDirectX.
 // Check for DirectX 11 availability if the user requested it
 // Set to use DirectX 9 if DirectX 11 is not available
