You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
3.0 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*!
  2. \mainpage SDL2_gfx - Graphics primitives and surface functions for SDL2
  3. \section contact_sec Contact and License
  4. Email aschiffler at ferzkopp dot net to contact the author
  5. or better check author's homepage at http://www.ferzkopp.net
  6. for the most up-to-date contact information.
  7. This library is licenced under the zlib License, see the file LICENSE for details.
  8. \section intro_sec Introduction
  9. The SDL2_gfx library provides the basic drawing functions such as lines,
  10. circles or polygons provided by SDL_gfx on SDL2 against renderers of SDL2.
  11. The current components of the SDL2_gfx library are:
  12. - Graphic Primitives (SDL2_gfxPrimitives.h, SDL2_gfxPrimitives.c)
  13. - Surface Rotozoomer (SDL2_rotozoom.h, SDL2_rotozoom.c)
  14. - Framerate control (SDL2_framerate.h, SDL2_framerate.c)
  15. - MMX image filters (SDL2_imageFilter.h, SDL2_imageFilter.c)
  16. - Build-in 8x8 Font (SDL2_gfxPrimitives_font.h)
  17. Note that SDL2_gfx is compatible with SDL version 2.0 (not SDL 1.2).
  18. \section install_sec Installation
  19. \subsection unix Unix/Linux
  20. Use the standard autoconf/automake sequence to compile and install the library.
  21. \verbatim
  22. ./autogen.sh # (optional, recommended)
  23. ./configure
  24. make
  25. make install
  26. \endverbatim
  27. \\subsubsection nommx Linker Configuration
  28. The default location for the installation is /usr/local/lib and /usr/local/include.
  29. This libary path may need to be added to the file the linker configuration file:
  30. \verbatim
  31. vi /etc/ld.so.conf
  32. ldconfig
  33. \endverbatim
  34. \\subsubsection nommx Non-MMX Platforms
  35. To build without MMX code enabled (i.e. ARM, PPC, AMD64 architectures):
  36. \verbatim
  37. ./configure --disable-mmx
  38. make
  39. make install
  40. \endverbatim
  41. \subsection visualstudio Windows (VS2015)
  42. Open the SDL2_gfx.sln solution file, right click on the solution and choose 'Rebuild'.
  43. The SDL2-2.0.5 folder must be placed in a directory alongside SDL2_gfx (or sdl2gfx-code) and build in the same configuration, i.e. Debug or Release, beforehand so the referenced SDL2.lib file can be found.
  44. \subsection platformosx Mac OSX
  45. The usual autotools build chain should be used. MacPorts or fink may be required.
  46. Xcode is supported via templates. See Xcode.zip - this template only supports SDL2_gfx
  47. and not the tests. For this template, the Deployment Target (the lowest version to run on)
  48. is set to 10.11 and expects the SDL2.framework preinstalled in the default location: /Library/Frameworks.
  49. \section test_sec Test Programs
  50. Change to the ./test directory and run
  51. \verbatim
  52. ./autogen.sh
  53. ./configure
  54. make
  55. \endverbatim
  56. to create several test programs for the libraries functions. This requires
  57. the SDL2_gfx library to be previously compiled and installed.
  58. See the source in the test/*.c files for some sample code and implementation hints.
  59. \section documentation_sec Documentation
  60. Please refer to the Doxygen-generated API documentation found in the
  61. Docs/html folder as well as the test programs in the test folder.
  62. \section changelog_sec Change Log
  63. \verbinclude ChangeLog
  64. */