I have changed my vertices to CCW as follows, then also It is not getting displayed
Again you need to swapbuffers appropriately for your target system even without glut. The alternative is to use single buffered rendering.
By the way … a normal could be useful too
You assume lighting.
Perhaps a color would be a better investment.