"Texture" for DrawPoly/DrawRect, etc

BlitzMax Forums/BlitzMax Beginners Area/"Texture" for DrawPoly/DrawRect, etc

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I've got a horrible feeling I'm going about this the wrong way.
The brl.glmax2d module shows that Drawpoly uses GL_POLYGON.
I'm assuming that OGL can texture poly created using GL_POLYGON so, in theory, shouldn't it be able to texture a poly created using Drawpoly?
BMAX has a bglCreateFromPixmap command and, within glmax2d, there are functions such as bindtex/enabletex
and createtex function.
Now, the bit where I'm banging my head against the wall.
I've read THIS
which suggests I can't use BindTex. However, I can assign a texture taken from a pixmap to an image.
How would I do the same assign but to a Drawpoly?