Original Post
Ok this isn''t funny now...
im trying to texture map a single polygon (square - rendered as a 4 vertex trianglestrip) under D3D7. All my code works fine if I just want a shaded polygon, i see my lovely coloured square on the screen. I know my bitmap loading stuff works, because i can do a DirectDraw Blt() from the texture surface to the back buffer and see it no problem, its just that when I call SetTexture(0,tex) and then render the primitive, the screen is just black (no it aint a black texture), and the DrawPrimitive() call returns an unknown HRESULT (im checking them all and it aint returning any of em). This is driving me MADDDDDDDDDDDD!
heres a code snippet: (debug stuff stripped out)
lpD3DDevice7->BeginScene();
lpD3DDevice7->SetTexture(0,tex);
lpD3DDevice7->DrawPrimitive(D3DPT_TRIANGLESTRIP,
D3DFVF_TLVERTEX,&tl,4,D3DDP_WAIT);
lpD3DDevice7->EndScene();
Flip();
Any ideas gang? a tube of smarties to anyone who solves it...
http://www.positech.co.uk