News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Question for Siekmanski

Started by BugCatcher, March 21, 2017, 12:50:01 AM

Previous topic - Next topic

BugCatcher

In your d3d9.inc file, the first 2 virtual tables have the typedef of the id structure.

IDirect3D9 struct
   _vtIDirect3D9 IDirect3D9
IDirect3D9 ends

   LPDIRECT3D9   typedef PTR IDirect3D9
   PDIRECT3D9   typedef PTR IDirect3D9

But the rest of the tables have typedef dword.

IDirect3DSwapChain9 struct
   _vtIDirect3DSwapChain9 IDirect3DSwapChain9
IDirect3DSwapChain9 ends

LPDIRECT3DSWAPCHAIN9   typedef PTR DWORD
PDIRECT3DSWAPCHAIN9   typedef PTR DWORD

Why the difference, reason? Thx.

Siekmanski

They are both DWORD type definitions.
Don't remember exactly why I did it this way.
I translated the D3D9 includes in 2003 from C++ to assembly by hand, maybe that's why.
Creative coders use backward thinking techniques as a strategy.

jj2007

Herryquiz is a lousy bot, and his coder is even lousier :greenclp:

Siekmanski

Creative coders use backward thinking techniques as a strategy.