Jump to content
  • Advertisement
Sign in to follow this  

Bezier question

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

this is my code,i cant get the Bezier,why? struct Point { GLfloat x; GLfloat y; GLfloat z; }; GLuint BC; const struct Point CP[4]={{0,0,0},{1,0,0},{1,1,0},{0,1,0}}; void BuiltList() { BC=glGenLists(1); glNewList(BC,GL_COMPILE ); glMap1f(GL_MAP1_VERTEX_3, 0.0, 1.0, 3, 4, CP); glEnable(GL_MAP1_VERTEX_3); glBegin(GL_LINE_STRIP); for (int i=0; i<=30; i++) glEvalCoord1f((GLfloat)i/30.0); glEnd(); glEndList(); } i used the VC6.0,always mistak in my code,how should i do?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!