Jump to content
  • Advertisement
Sign in to follow this  
StoneMask

LPDIRECT3DTEXTURE9 equivalent in DirectX11?

This topic is 1497 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This is probably really simple, but I absolutely cannot find a solution anywhere online. I've included the libraries D3D11 and D3DX11, as well as DirectXMath, and LPDIRECT3DTEXTURE9 supposedly isn't on them, and I can't find anything that looks similar in Intellisense. What am I supposed to use for those kinds of objects--ie, LPDIRECT3DSURFACE9, D3DCOLOR, LPDIRECT3DDEVICE9, etc.?

Share this post


Link to post
Share on other sites
Advertisement

"LPDIRECT3DTEXTURE9" is a typedef for "IDirect3DTexture9*".

In D3D11, IDirect3DTexture9 is replaced with ID3D11Texture2D or it's base class ID3D11Resource (and also ID3D11ShaderResourceView when you want to bind it to a shader).

 

Likewise LPDIRECT3DSURFACE9 is just a typedef for "IDirect3DSurface9*", which is also replaced by ID3D11Texture2D or it's base class ID3D11Resource (and also ID3D11RenderTargetView or ID3D11DepthStencilView when you want to render to the surface).

 

LPDIRECT3DDEVICE9 is a typedef for IDirect3DDevice9*, which has been replaced by ID3D11Device and ID3D11DeviceContext.

 

D3DCOLOR is just a typedef for an unsigned long.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!