Introduction - If you have any usage issues, please Google them yourself
opengl Advanced Programming Guide, I will teach you how to rotate the triangle and quadrilateral. Left of the triangle along the Y-axis rotation, quadrilateral along the X axis.