• Advertisement
Sign in to follow this  

Bezier question

This topic is 4180 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
Advertisement
Sign in to follow this  

  • Advertisement