Original Post
the following code will draw a polygon with 3 square corners and 1 rounded corner. But my original intention is draw the arc in the rounded corner in the inverted way such that it is "chipped" off instead of rounded.How do i modify?
int SUBDIVS=10;
glBegin(GL_POLYGON);
glNormal3f( 0.0f, 0.0f, -1.0f);
glVertex3f(-x+d, d, 1.0f);
glVertex3f(-x+d,-y-d, 1.0f);
glVertex3f(d,-y-d, 1.0f);
glVertex3f(d,0,1.0f);
float arcx;
float arcy;
for (i=0;i<= SUBDIVS; i++) {
arcx = d*cos(i*(pi/2)/SUBDIVS);
arcy = d*sin(i*(pi/2)/SUBDIVS);
glVertex3f(arcx,arcy,1.0f);
}
glEnd();