News:

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

Help with my first prog in directx9

Started by ToutEnMasm, October 06, 2007, 04:03:10 PM

Previous topic - Next topic

ToutEnMasm

Hello,
I am translating for masm the tutorial of the sdk directx.
A first set of translated header files go with the sample.
The sample show a triangle,this work.
I have added the necessary code to make it turn,but he don't want to turn.
I have verified the data values,the returned values of the function,but see nothing wrong.
It is the translation of the sample "matrices".
The proc who don't work is "SetupMatrices".
The source don't crash.
To compile it you need the sdk directx (the last) and the VC++ express (one library is useful libcmt).
      +++++++++++ added +++++++++++++++++++++++++++++++++
Changed the styles of the window to be the same as sample ,nothing more
used  d3dspy , just say that all is OK
made the same manifest as c++,nothing more

ToutEnMasm

Found,
I have took my first lesson with directx.
There is several types of triangle with directx.They are defined by:
Quote
D3DFVF_CUSTOMVERTEX equ D3DFVF_XYZ or D3DFVF_DIFFUSE
The first triangle coming with the tutorial,couldn't turn,so the third (this one) modify it.
The type is modified and also the CUSTOMVERTEX structure.
See my next post,to start with directx