PDA

View Full Version : sth. about pasting texture



suponlyzx
09-07-2005, 02:19 AM
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?

Hlz
09-08-2005, 06:19 PM
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