from elaborate arched windows the incas waved and cheered , the buildings continued to grow in splendour and grandeur , finally the avenue opened out into the main square , ahead of them loomed the temple .