examples/Qt/ISFEditor/ISFEditor_app/Spout/SpoutGLDXinterop.cpp
//
// Return sharing mode set by user or by an application
// Reads the registry - avoid repeated use every frame.
//
// 0 - texture, 1 - cpu, 2 - memory
//

Return sharing mode set by user or by an application
Reads the registry - avoid repeated use every frame.

texture, 1 - cpu, 2 - memory
Return sharing mode set by user or by an application Reads the registry - avoid repeated use every frame . texture 1 - cpu 2 - memory
int spoutGLDXinterop::GetShareMode()
{
	if(GetMemoryShareMode()) {
			return 2;
	}
	else if (GetCPUmode()) {
			return 1;
	}
	else {
		return 0;
	}
}
int spoutGLDXinterop :: GetShareMode ( ) { if ( GetMemoryShareMode ( ) ) { return 2 ; } else if ( GetCPUmode ( ) ) { return 1 ; } else { return 0 ; } }
Return sharing mode set by user or by an application
Reads the registry - avoid repeated use every frame.
Return sharing mode set by user or by an application Reads the registry - avoid repeated use every frame .