News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

DirectX and ASM

Started by TNick, June 16, 2006, 02:20:08 PM

Previous topic - Next topic

TNick

I need some guideness about the basics of DirectX, how to write ASM code that calls DirectX procedures, ...
I read the code in masm/com/..., but I still don't understand how it works.
One more thing: I don't understand this statement:
mov esi,(IGraphBuilder PTR [edi]).IGraphBuilder_QueryInterface

What's with <<(IGraphBuilder PTR [edi])>>?

Ossa

The best tutorial for DirectX with ASM is still Chris Hobbs' 6 part tutorial on GameDev.net: here

It is for DirectX 6, but the basics are still the same. For more modern examples, look at Scronty's Site: here

mov esi,(IGraphBuilder PTR [edi]).IGraphBuilder_QueryInterface

The (IGraphBuilder PTR [edi]) informs MASM that edi is pointing to an IGraphBuilder structure, so that it can find the correct offset to get the IGraphBuilder_QueryInterface member.

Ossa
Website (very old): ossa.the-wot.co.uk

TNick

Thanks for soon answer! I will start there.

Ossa

I just realised that since they changed the layout at gamedev.net, they mucked up the linking between all 6 articles. The index to them is here.

Ossa

Website (very old): ossa.the-wot.co.uk