Hi Indiepath. I've just tried out your DarTexturedPoly-Module, but it seems, there are a few bugs in it.
First:
It only works with D3D. If I try to draw a textured Poly in OpenGL, it crashes with the error, TeaVirus mentioned some posts ago.
Second:
There has to be a Bug with the Vertex-Coordinates. I draw a non-textured-BMax-Poly (a simple Quad). Then, I draw a textured Poly at the same position (Texture has no transparent/masked space), but it does not overlap perfectly, as it should. At the right side and at the lower side there are some pixel-lines missing. The Image's scale seems to be incorrect.
Here are my coordinate-arrays:
Poly:
100.0, 100.0,
190.0, 100.0,
190.0, 190.0,
100.0, 190.0
Textured Poly
100.0, 100.0, 0.0, 0.0,
190.0, 100.0, 1.0, 0.0,
190.0, 190.0, 1.0, 1.0,
100.0, 190.0, 0.0, 1.0
It would be nice, if you fixed those bugs, i could really use a DrawTexturedPoly-Function right now.. :/
Edit:
I've got a feature request too: Could you, optional, in a second array support Vertexalpha and Vertexcolor? That would be REALLY cool =)
First:
It only works with D3D. If I try to draw a textured Poly in OpenGL, it crashes with the error, TeaVirus mentioned some posts ago.
Second:
There has to be a Bug with the Vertex-Coordinates. I draw a non-textured-BMax-Poly (a simple Quad). Then, I draw a textured Poly at the same position (Texture has no transparent/masked space), but it does not overlap perfectly, as it should. At the right side and at the lower side there are some pixel-lines missing. The Image's scale seems to be incorrect.
Here are my coordinate-arrays:
Poly:
100.0, 100.0,
190.0, 100.0,
190.0, 190.0,
100.0, 190.0
Textured Poly
100.0, 100.0, 0.0, 0.0,
190.0, 100.0, 1.0, 0.0,
190.0, 190.0, 1.0, 1.0,
100.0, 190.0, 0.0, 1.0
It would be nice, if you fixed those bugs, i could really use a DrawTexturedPoly-Function right now.. :/
Edit:
I've got a feature request too: Could you, optional, in a second array support Vertexalpha and Vertexcolor? That would be REALLY cool =)