mithun_daa
01-05-2004, 06:24 AM
this is wierd. iv been workin with a looot of display lists, but i never had this kind of a problem. herez the code thatz causeing the prob. :
temp3 = glGenLists(1)
temp4 = glIsList(temp3)
glNewList temp3, lstCompile
glPushMatrix
glBegin bmQuads
glTexCoord2f 1, 0
glVertex3f dblImgOvrX - dblRectX, dblImgOvrY, -dblZmax
glTexCoord2f 1, 1
glVertex3f dblImgOvrX - dblRectX, dblImgOvrY - dblRectY, -dblZmax
glTexCoord2f 0, 1
glVertex3f dblImgOvrX, dblImgOvrY - dblRectY, -dblZmax
glTexCoord2f 0, 0
glVertex3f dblImgOvrX, dblImgOvrY, -dblZmax
glEnd
glPopMatrix
glEndList
temp4 = glIsList(temp3)
when im debugging, temp4 always is false. that means the DL is never being created. the genlist is returning a 0. when i force it to some number i still get the same results.plz help
thank u.
temp3 = glGenLists(1)
temp4 = glIsList(temp3)
glNewList temp3, lstCompile
glPushMatrix
glBegin bmQuads
glTexCoord2f 1, 0
glVertex3f dblImgOvrX - dblRectX, dblImgOvrY, -dblZmax
glTexCoord2f 1, 1
glVertex3f dblImgOvrX - dblRectX, dblImgOvrY - dblRectY, -dblZmax
glTexCoord2f 0, 1
glVertex3f dblImgOvrX, dblImgOvrY - dblRectY, -dblZmax
glTexCoord2f 0, 0
glVertex3f dblImgOvrX, dblImgOvrY, -dblZmax
glEnd
glPopMatrix
glEndList
temp4 = glIsList(temp3)
when im debugging, temp4 always is false. that means the DL is never being created. the genlist is returning a 0. when i force it to some number i still get the same results.plz help
thank u.