• ### What is your GameDev Story?

Public Group

#### Archived

This topic is now archived and is closed to further replies.

# how to rotate GL_QUADS textured within one of its left side

This topic is 5402 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

how to rotate GL_QUADS textured within one of its left side.make its right side to its left side i''m sorry . my english is very poor and i am a beginner of opengl now stick some code following: initial code£º glBegin(GL_QUADS); glTexCoord2f(0.0f, 0.0f); glVertex3f(-1.0f,-1.0f, 0.0f); glTexCoord2f(1.0f, 0.0f); glVertex3f(1.0f,-1.0f, 0.0f); glTexCoord2f(1.0f, 1.0f); glVertex3f( 1.0f,1.0f, 0.0f); glTexCoord2f(0.0f, 1.0f); glVertex3f(-1.0f, 1.0f, 0.0f); glEnd(); rotate code£º glBegin(GL_QUADS); glTexCoord2f(0.0f, 0.0f); glVertex3f(-1.0f,-1.0f, 0.0f); glTexCoord2f(1.0f, 0.0f); glVertex3f((float)cos((double)M_angle) * 2.0f,-(float)sin((double)M_angle) * 2.0f, 0.0f); glTexCoord2f(1.0f, 1.0f); glVertex3f( (float)cos((double)M_angle) * 2.0f,(float)sin((double)M_angle) * 2.0f, 0.0f); glTexCoord2f(0.0f, 1.0f); glVertex3f(-1.0f, 1.0f, 0.0f); glEnd(); M_angle+=0.01f; if (M_angle>1.0f||M_angle<0.0f) { M_angle=0.0f; M_Flag=false; } please help me and my msn: cqu6729@163.com

##### Share on other sites
thanks

i have read nehe again and again,but i can't find any method

[edited by - testopp on April 10, 2004 6:54:15 AM]

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 11
• 15
• 11
• 11
• 9
• ### Forum Statistics

• Total Topics
634151
• Total Posts
3015827
×

## Important Information

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!