how to create a textured 2d polygon

BlitzMax Forums/BlitzMax Beginners Area/how to create a textured 2d polygon

hub(Posted 2010) [#1]
Hi !
Is there a way to draw a textured 2d polygon with bmax (or another bmax lib) (DirectX and openGL compatible).
Thanks !


Ked(Posted 2010) [#2]
Code archives: http://www.blitzbasic.com/codearcs/codearcs.php?code=1812


hub(Posted 2010) [#3]
Thanks for the link, it seems not work with bmax now. Is somebody use this piece of code (or have updated it) ?


Warpy(Posted 2010) [#4]
In what way doesn't it work?


hub(Posted 2010) [#5]
works now, i've uncommented the line 'If Driver.islost Return'
how to adpat it with directx 9 driver ?


Yan(Posted 2010) [#6]
Therein lies the path to code so horrifically ugly, it'd make your eyes bleed. :o[