Steve Chow
10-26-2008, 06:22 AM
Basically, I'm drawing something like this:
http://img147.imageshack.us/img147/8550/shapeslb5.png
Using something like this:
glBegin(GL_LINES)
for a in scanline
glVertex2d(scanline[a].l, scanline[a].y)
glVertex2d(scanline[a].r, scanline[a].y)
glEnd()
and I want to texture it something like this:
http://img126.imageshack.us/img126/7112/shapesxw0.png
Everything I've read on texturing deals with simple quads, etc. I'm not sure how I should approach this, could anyone point me in the right direction?
Thanks
http://img147.imageshack.us/img147/8550/shapeslb5.png
Using something like this:
glBegin(GL_LINES)
for a in scanline
glVertex2d(scanline[a].l, scanline[a].y)
glVertex2d(scanline[a].r, scanline[a].y)
glEnd()
and I want to texture it something like this:
http://img126.imageshack.us/img126/7112/shapesxw0.png
Everything I've read on texturing deals with simple quads, etc. I'm not sure how I should approach this, could anyone point me in the right direction?
Thanks