Direct3D.xml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <?xml-stylesheet type="text/xsl" href="../Xsl/doc2html.xsl"?>
  3. <doc>
  4. <title>Direct3D Textures</title>
  5. <chapter>
  6. <title>Direct3D Textures</title>
  7. <par>
  8. This extensions contains functions for loading and saving
  9. <keyword>Direct3D</keyword> textures
  10. using Imaging and for converting images to textures and vice versa.
  11. Currently supported <keyword>Direct3D</keyword> version is 9.0.
  12. You need <keyword>Direct3D</keyword> headers for
  13. <keyword>Object Pascal</keyword> to be able to compile this extension.
  14. They can be found at <link url="http://www.clootie.ru">http://www.clootie.ru</link>.
  15. Extension does not require D3DX library so if you use it
  16. only for loading or saving textures you can replace it by Imaging
  17. and remove dependency on 2+ MiB dll file.
  18. It is implemented in <ref>ImagingDirect3D9.pas</ref> unit located
  19. in <keyword>(ImagingRoot)\Source\Extensions</keyword> directory.
  20. To use it simply add this unit to <icode>uses</icode> list of your program.
  21. </par>
  22. <par>
  23. Here is the table with <keyword>Direct3D</keyword> functions
  24. currently available.
  25. There is also Imaging <keyword>Direct3D</keyword> demo you can look at
  26. for inspiration <link url="../Demos/Pascal.xml#d3ddemo">Object Pascal Direct3D Demo</link>.
  27. </par>
  28. <table>
  29. <title>Imaging Direct3D extension functions</title>
  30. <row><th>Loading Functions</th></row>
  31. <row><td><ref>LoadD3DTextureFromFile</ref></td></row>
  32. <row><td><ref>LoadD3DTextureFromStream</ref></td></row>
  33. <row><td><ref>LoadD3DTextureFromMemory</ref></td></row>
  34. <row><th>Saving Functions</th></row>
  35. <row><td><ref>SaveD3DTextureToFile</ref></td></row>
  36. <row><td><ref>SaveD3DTextureToStream</ref></td></row>
  37. <row><td><ref>SaveD3DTextureToMemory</ref></td></row>
  38. <row><th>Conversion Functions</th></row>
  39. <row><td><ref>CreateD3DTextureFromImage</ref></td></row>
  40. <row><td><ref>CreateD3DTextureFromMultiImage</ref></td></row>
  41. <row><td><ref>CreateD3DSurfaceFromImage</ref></td></row>
  42. <row><td><ref>CreateImageFromD3DTexture</ref></td></row>
  43. <row><td><ref>CreateMultiImageFromD3DTexture</ref></td></row>
  44. <row><td><ref>CreateImageFromD3DSurface</ref></td></row>
  45. <row><th>Other Functions</th></row>
  46. <row><td><ref>GetDeviceTextureCaps</ref></td></row>
  47. <row><td><ref>IsD3DFormatSupported</ref></td></row>
  48. <row><td><ref>ImageFormatToD3DFormat</ref></td></row>
  49. <row><td><ref>D3DFormatToImageFormat</ref></td></row>
  50. </table>
  51. <note>
  52. <ref>LoadD3DTextureFromFile</ref> and similar functions use
  53. these default values: All mipmap levels are created, Pool
  54. is D3DPOOL_MANAGED, Usage is 0, Format and size are taken from image.
  55. If you want to set those parameters to other values use
  56. <ref>CreateD3DTextureFromImage</ref> or <ref>CreateD3DTextureFromMultiImage</ref>
  57. instead.
  58. </note>
  59. </chapter>
  60. </doc>