SDL.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <?xml-stylesheet type="text/xsl" href="../Xsl/doc2html.xsl"?>
  3. <doc>
  4. <title>SDL Surfaces</title>
  5. <chapter>
  6. <title>SDL Surfaces</title>
  7. <par>
  8. This extension provides functions for loading/saving
  9. <keyword>SDL</keyword> surfaces using Imaging and for converting
  10. images to <keyword>SDL</keyword> surfaces and vice versa.
  11. You need <keyword>SDL</keyword> headers for <keyword>Object Pascal</keyword>
  12. (<keyword>JEDI-SDL</keyword>) to compile this extension.
  13. It is implemented in <ref>ImagingSDL.pas</ref> unit located
  14. in <keyword>(ImagingRoot)\Source\Extensions</keyword> directory.
  15. To use it simply add this unit to <icode>uses</icode> list of your program.
  16. Imaging library with this extension can be used as a replacement
  17. for <keyword>SDL_image</keyword> library if you don't want your
  18. application to be dependent on four C dll/so libraries
  19. (<keyword>SDL_image</keyword> + jpeglib + libpng + zlib).
  20. </par>
  21. <par>
  22. Here is the table with <keyword>SDL</keyword> functions
  23. currently available.
  24. There is also Imaging <keyword>SDL</keyword> demo you can look at
  25. for inspiration <link url="../Demos/Pascal.xml#sdldemo">Object Pascal SDL Demo</link>.
  26. </par>
  27. <table>
  28. <title>Imaging SDL extension functions</title>
  29. <row><th>Loading Functions</th></row>
  30. <row><td><ref>LoadSDLSurfaceFromFile</ref></td></row>
  31. <row><td><ref>LoadSDLSurfaceFromStream</ref></td></row>
  32. <row><td><ref>LoadSDLSurfaceFromMemory</ref></td></row>
  33. <row><th>Saving Functions</th></row>
  34. <row><td><ref>SaveSDLSurfaceToFile</ref></td></row>
  35. <row><td><ref>SaveSDLSurfaceToStream</ref></td></row>
  36. <row><td><ref>SaveSDLSurfaceToMemory</ref></td></row>
  37. <row><th>Conversion Functions</th></row>
  38. <row><td><ref>CreateSDLSurfaceFromImage</ref></td></row>
  39. <row><td><ref>CreateImageFromSDLSurface</ref></td></row>
  40. </table>
  41. <note>
  42. <ref>LoadSDLSurfaceFromFile</ref> and similar functions use
  43. <icode>SDL_SWSURFACE</icode> as <icode>Flags</icode> when creating
  44. <keyword>SDL</keyword> surface. If you want other
  45. <icode>Flags</icode> to be used load image by standard
  46. <ref>LoadImageFromFile</ref> and similar functions and then call
  47. <ref>CreateSDLSurfaceFromImage</ref> which has more options.
  48. </note>
  49. </chapter>
  50. </doc>