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.?
LPDIRECT3DTEXTURE9 equivalent in DirectX11?
"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.
. 22 Racing Series .
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement