examples/Qt/ISFEditor/ISFEditor_app/Spout/SpoutGLDXinterop.cpp
// Sets the given info structure to shared memory with the given name
// IMPORTANT: this modifies the local structure
// Used to change the texture dimensions before init

Sets the given info structure to shared memory with the given name
IMPORTANT: this modifies the local structure
Used to change the texture dimensions before init
Sets the given info structure to shared memory with the given name IMPORTANT : this modifies the local structure Used to change the texture dimensions before init
bool spoutGLDXinterop::setSharedInfo(char* sharedMemoryName, SharedTextureInfo* info)
{
	m_TextureInfo.width			= info->width;
	m_TextureInfo.height		= info->height;
#ifdef _M_X64
	m_dxShareHandle = (HANDLE)(LongToHandle((long)info->shareHandle));
#else
	m_dxShareHandle = (HANDLE)info->shareHandle;
#endif	
	if(setSharedTextureInfo(sharedMemoryName)) {
		return true;
	}
	else {
		return false;
	}
}
bool spoutGLDXinterop :: setSharedInfo ( char * sharedMemoryName , SharedTextureInfo * info ) { m_TextureInfo . width = info -> width ; m_TextureInfo . height = info -> height ; #ifdef _M_X64 m_dxShareHandle = ( HANDLE ) ( LongToHandle ( ( long ) info -> shareHandle ) ) ; #else m_dxShareHandle = ( HANDLE ) info -> shareHandle ; #endif if ( setSharedTextureInfo ( sharedMemoryName ) ) { return true ; } else { return false ; } }
Sets the given info structure to shared memory with the given name
IMPORTANT: this modifies the local structure
Used to change the texture dimensions before init
Sets the given info structure to shared memory with the given name IMPORTANT : this modifies the local structure Used to change the texture dimensions before init
// m_dxShareHandle				= (HANDLE)info->shareHandle; 
 // the local info structure handle "m_TextureInfo.shareHandle" gets converted 
 // into (unsigned __int32) from "m_dxShareHandle" by setSharedTextureInfo
