examples/Qt/ISFEditor/ISFEditor_app/Spout/SpoutGLDXinterop.cpp
//
// Write a DirectX 9 system memory surface to the shared texture (sizes must be the same)
//

Write a DirectX 9 system memory surface to the shared texture (sizes must be the same)
Write a DirectX 9 system memory surface to the shared texture ( sizes must be the same )
bool spoutGLDXinterop::WriteDX9surface(LPDIRECT3DSURFACE9 source_surface)
{
	if(!source_surface || !GetDX9())
		return false;
	if(spoutdx.CheckAccess(m_hAccessMutex)) {
		if(spoutdx.WriteDX9surface(m_pDevice, m_dxTexture, source_surface)) {
			spoutdx.AllowAccess(m_hAccessMutex);
			return true;
		}
	}
	spoutdx.AllowAccess(m_hAccessMutex);
	return false;
}
bool spoutGLDXinterop :: WriteDX9surface ( LPDIRECT3DSURFACE9 source_surface ) { if ( ! source_surface || ! GetDX9 ( ) ) return false ; if ( spoutdx . CheckAccess ( m_hAccessMutex ) ) { if ( spoutdx . WriteDX9surface ( m_pDevice , m_dxTexture , source_surface ) ) { spoutdx . AllowAccess ( m_hAccessMutex ) ; return true ; } } spoutdx . AllowAccess ( m_hAccessMutex ) ; return false ; }
Write a DirectX 9 system memory surface to the shared texture (sizes must be the same)
Write a DirectX 9 system memory surface to the shared texture ( sizes must be the same )
// Only for DX9 mode
