News:

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

All you need to start with directx 9_0c

Started by ToutEnMasm, October 10, 2007, 06:32:11 AM

Previous topic - Next topic

ToutEnMasm

Hello,
Here is the translated sample of rotating triangle (sdk directx tutorial)
It is really directx,no use of GLU is made.
Join with the sample are:
The needed header's
The needed manifest to link with the msvcrt.lib of the vc++ lib directory.
The sample link with the libcmt.lib of the c++.
The two methods are usable and you have all you need to do that.
The source code is very closer with the c++ one,you will find a WinMain proc.
The msvcrt.lib of masm cannot be used with it.It is a rebuild of the source code in c,that can be found in the VC++ (not express edition) and the windows SDK.Some functions are renamed and made errors (name not found) at link.

EASY:
The translated header's files used a very simple syntax to call COM
Quote
IDirect3DDevice9 CreateVertexBuffer,3*sizeof(CUSTOMVERTEX),\
         0, D3DFVF_CUSTOMVERTEX,D3DPOOL_DEFAULT,addr ppvIDirect3DVertexBuffer9, NULL
So,you can read more easily the disasembly of the c++.

Quote

The header file has been translate with the translator that is downloadable here.I am makingsome modifies to it.If you want more header files,just ask.




[attachment deleted by admin]

Mark Jones

Interesting...  I wonder if we need a DirectX forum? :wink
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08