C++ (Qt)struct CObjectExample { Point GetPosition( int frameIndex ); Color GetColor( int frameIndex ); .... void Send2Render( int frameIndex, Stream & stream ) { stream << GetPosition(frameIndex) << GetColor(frameIndex) << ..... }};