Jump to content

  • Log In with Google      Sign In   
  • Create Account

Paxi

Member Since 09 Dec 2012
Offline Last Active Aug 31 2014 07:24 AM

#5018204 IDirect3DTexture9 vs LPDIRECT3DTEXTURE9

Posted by Paxi on 06 January 2013 - 09:08 AM

I think he ment that you can just replace every LPDIRECT3DTEXTURE9 in your code with IDirect3DTexture9*.
 

LPDIRECT3DTEXTURE9 is nothing more than a typefef for IDirect3DTexture9*




#5017460 (solved) Probably stupid question on unsigned int / effect->begin

Posted by Paxi on 04 January 2013 - 10:26 AM

In general you write it like this:
UINT numPasses = 0;
mFX->Begin(&numPasses, 0);
....

Like FLEBlanc said, DirectX will fill the variable you are passing in, with the amount of passes.


PARTNERS