Rotating text with polygon OpenGL c++

So I am trying to make a sign that rotates. However I cant make the words rotate with the sign. How do I do this?

void drawBillboard() {
	std::string adText = "Block Buster";
	std::string adText0 = "Bring back the 90s!";
	


	glColor3f(0, 0, 0);
	glBegin(GL_LINE_LOOP);
	glVertex3i(-200, 450, 0);
	glVertex3i(200, 450, 0);
	glVertex3i(200, 250, 0);
	glVertex3i(-200, 250, 0);
	glEnd();

	glColor3f(0, 0, 0);

	glRasterPos3i(-100, 400, 50);
	for (int i = 0; i < adText.length(); i++) {
		glutBitmapCharacter(GLUT_BITMAP_TIMES_ROMAN_24, adText[i]);
	}

}

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.