Draw image without texture?

BlitzMax Forums/BlitzMax Programming/Draw image without texture?

Do you have a reference you used for that that I could take a look at? I'd like to see what the different commands and modes do.

Oh and where do I find the PrimaryDevice stuff in Max's source? This is what I was hoping you could do... Access DirectX from in Max like you can OpenGL to influence the output


I use the DX7 SDK .chm file to check for available commands but 'Special Effects Game Programming with DirectX' by Mason McCuskey. It's DX8 which is why you need to ensure the commands are also DX7.
'2D in Direct3D' by Ernest Pazera is pretty good as is his 'Isometric Game Programming with DirectX 7.0'
Really useful stuff for rendering is the mfctex utility thaty comes with DX SDK as well as D3DMulTex and OGLMulTex. These utilities allow you to enter renderstage commands plus texture input and show the result.
Not all cards have multipass rendering so you might need multiple single passes.
PrimaryDevice is declared in D3D7Graphics and holds the DX7 device instance. From the you have access to it's fields which include the Direct3D device, frontbuffer and backbuffer etc.
Hope it helps