examples/Qt/ISFEditor/ISFEditor_app/Spout/SpoutSDK.cpp
// If the local texure has changed dimensions this will return false

If the local texure has changed dimensions this will return false
If the local texure has changed dimensions this will return false
bool Spout::SendImage(const unsigned char* pixels, 
					  unsigned int width, 
					  unsigned int height, 
					  GLenum glFormat, 
					  bool bInvert,
					  GLuint HostFBO)
{
	GLenum glformat = glFormat;
	if(width != g_Width || height != g_Height)
		return(UpdateSender(g_SharedMemoryName, width, height));
	if(!(glformat == GL_RGBA || glFormat == 0x80E1 || glformat == GL_RGB || glFormat == 0x80E0))
		return false;
	if(!IsBGRAavailable()) {
		if(glFormat == 0x80E0) glformat = GL_RGB; 
		if(glFormat == 0x80E1) glformat = GL_RGBA; 
	}
	return(interop.WriteTexturePixels(pixels, width, height, glformat, bInvert, HostFBO));
}
bool Spout :: SendImage ( const unsigned char * pixels , unsigned int width , unsigned int height , GLenum glFormat , bool bInvert , GLuint HostFBO ) { GLenum glformat = glFormat ; if ( width != g_Width || height != g_Height ) return ( UpdateSender ( g_SharedMemoryName , width , height ) ) ; if ( ! ( glformat == GL_RGBA || glFormat == 0x80E1 || glformat == GL_RGB || glFormat == 0x80E0 ) ) return false ; if ( ! IsBGRAavailable ( ) ) { if ( glFormat == 0x80E0 ) glformat = GL_RGB ; if ( glFormat == 0x80E1 ) glformat = GL_RGBA ; } return ( interop . WriteTexturePixels ( pixels , width , height , glformat , bInvert , HostFBO ) ) ; }
If the local texure has changed dimensions this will return false
If the local texure has changed dimensions this will return false
// bool bResult = true;
 // printf("SendImage(%d, %d) - format = %x, invert = %d\n", width, height, glFormat, bInvert);
 // width, g_Width should all be the same
 // Only RGBA, BGRA, RGB, BGR supported
 // Check for BGRA support
 // If the bgra extensions are not available and the user
 // provided GL_BGR_EXT or GL_BGRA_EXT do not use them
 // GL_BGR_EXT
 // GL_BGRA_EXT
 // Write the pixel data to the rgba shared texture from the user pixel format
