Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. To use d3d9 you must link to d3d9.lib.
  2. Link to d3dx9.lib is a helper library which you may also wish to use.
  3. The d3d9 and d3dx9 header files must be included to make use of the functions contained within these libraries.
  4.  
  5. #include <d3d9.h>
  6. #include <d3dx9.h>
  7.  
  8. Initializing Direct3D:
  9.  
  10. First declare a pointer to an IDirect3D9 interface object.
  11.  
  12. IDirect3D9* d3d9;
  13.  
  14. This interface is used to acquire information about the graphics hardware in a system and to create an IDirect3DDevice9 interface.
  15.  
  16. To create this interface call Direct3DCreate9 and pass it D3D_SDK_VERSION, this is the only real parameter and assures the application is built against the correct header files.
  17.  
  18. d3d9 = Direct3DCreate9( D3D_SDK_VERSION );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement