Code/Client/Private/NetImgui_Client.cpp
//=================================================================================================
// OUTCOM: TEXTURE
// Transmit all pending new/updated texture
//=================================================================================================
TEXTURE
Transmit all pending new/updated texture
TEXTURE Transmit all pending new / updated texture
bool Communications_Outgoing_Textures(ClientInfo& client)
{	
	bool bSuccess(true);
	client.TextureProcessPending();
	if( client.mbHasTextureUpdate )
	{
		for(auto& cmdTexture : client.mTextures)
		{
			if( !cmdTexture.mbSent && cmdTexture.mpCmdTexture )
			{
				bSuccess			&= Network::DataSend(client.mpSocket, cmdTexture.mpCmdTexture, cmdTexture.mpCmdTexture->mHeader.mSize);
				cmdTexture.mbSent	= bSuccess;
				if( cmdTexture.mbSent && cmdTexture.mpCmdTexture->mFormat == eTexFormat::kTexFmt_Invalid )
					netImguiDeleteSafe(cmdTexture.mpCmdTexture);					
			}
		}
		client.mbHasTextureUpdate = !bSuccess;
	}
	return bSuccess;
}
bool Communications_Outgoing_Textures ( ClientInfo & client ) { bool bSuccess ( true ) ; client . TextureProcessPending ( ) ; if ( client . mbHasTextureUpdate ) { for ( auto & cmdTexture : client . mTextures ) { if ( ! cmdTexture . mbSent && cmdTexture . mpCmdTexture ) { bSuccess &= Network :: DataSend ( client . mpSocket , cmdTexture . mpCmdTexture , cmdTexture . mpCmdTexture -> mHeader . mSize ) ; cmdTexture . mbSent = bSuccess ; if ( cmdTexture . mbSent && cmdTexture . mpCmdTexture -> mFormat == eTexFormat :: kTexFmt_Invalid ) netImguiDeleteSafe ( cmdTexture . mpCmdTexture ) ; } } client . mbHasTextureUpdate = ! bSuccess ; } return bSuccess ; }
OUTCOM: TEXTURE
Transmit all pending new/updated texture
OUTCOM : TEXTURE Transmit all pending new / updated texture