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?
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?