how can i paste texture(picture) on an irregular polygon,sth like triangle or hexagon?
can i still use gltexcoord()??
could sb.provide the code?
how can i paste texture(picture) on an irregular polygon,sth like triangle or hexagon?
can i still use gltexcoord()??
could sb.provide the code?
I’d have to say yes (I think :-)).
Have a look at the redbook chapter on texture mapping.
http://www.rush3d.com/reference/opengl-redbook-1.1/chapter09.html