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.

130 lines
9.3 KiB

6 years ago
6 years ago
5 years ago
7 years ago
5 years ago
10 years ago
4 years ago
4 years ago
5 years ago
4 years ago
4 years ago
5 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
6 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
8 years ago
5 years ago
4 years ago
  1. <img align="left" src="https://github.com/raysan5/raylib/blob/master/logo/raylib_256x256.png" width=256>
  2. **raylib is a simple and easy-to-use library to enjoy videogames programming.**
  3. raylib is highly inspired by Borland BGI graphics lib and by XNA framework and it's specially well suited for prototyping, tooling, graphical applications, embedded systems and education.
  4. *NOTE for ADVENTURERS: raylib is a programming library to enjoy videogames programming; no fancy interface, no visual helpers, no auto-debugging... just coding in the most pure spartan-programmers way.*
  5. Ready to learn? Jump to [code examples!](http://www.raylib.com/examples.html)
  6. <br>
  7. [![GitHub contributors](https://img.shields.io/github/contributors/raysan5/raylib)](https://github.com/raysan5/raylib/graphs/contributors)
  8. [![GitHub All Releases](https://img.shields.io/github/downloads/raysan5/raylib/total)](https://github.com/raysan5/raylib/releases)
  9. [![GitHub commits since tagged version](https://img.shields.io/github/commits-since/raysan5/raylib/3.5.0)](https://github.com/raysan5/raylib/commits/master)
  10. [![License](https://img.shields.io/badge/license-zlib%2Flibpng-blue.svg)](LICENSE)
  11. [![Chat on Discord](https://img.shields.io/discord/426912293134270465.svg?logo=discord)](https://discord.gg/raylib)
  12. [![GitHub stars](https://img.shields.io/github/stars/raysan5/raylib?style=social)](https://github.com/raysan5/raylib/stargazers)
  13. [![Twitter Follow](https://img.shields.io/twitter/follow/raysan5?style=social)](https://twitter.com/raysan5)
  14. [![Subreddit subscribers](https://img.shields.io/reddit/subreddit-subscribers/raylib?style=social)](https://www.reddit.com/r/raylib/)
  15. [![Windows](https://github.com/raysan5/raylib/workflows/Windows/badge.svg)](https://github.com/raysan5/raylib/actions?query=workflow%3AWindows)
  16. [![Linux](https://github.com/raysan5/raylib/workflows/Linux/badge.svg)](https://github.com/raysan5/raylib/actions?query=workflow%3ALinux)
  17. [![macOS](https://github.com/raysan5/raylib/workflows/macOS/badge.svg)](https://github.com/raysan5/raylib/actions?query=workflow%3AmacOS)
  18. [![Android](https://github.com/raysan5/raylib/workflows/Android/badge.svg)](https://github.com/raysan5/raylib/actions?query=workflow%3AAndroid)
  19. [![WebAssembly](https://github.com/raysan5/raylib/workflows/WebAssembly/badge.svg)](https://github.com/raysan5/raylib/actions?query=workflow%3AWebAssembly)
  20. [![CMakeBuilds](https://github.com/raysan5/raylib/workflows/CMakeBuilds/badge.svg)](https://github.com/raysan5/raylib/actions?query=workflow%3ACMakeBuilds)
  21. features
  22. --------
  23. - **NO external dependencies**, all required libraries are bundled into raylib
  24. - Multiple platforms supported: **Windows, Linux, MacOS, RPI, Android, HTML5... and more!**
  25. - Written in plain C code (C99) in PascalCase/camelCase notation
  26. - Hardware accelerated with OpenGL (**1.1, 2.1, 3.3 or ES 2.0**)
  27. - **Unique OpenGL abstraction layer** (usable as standalone module): [rlgl](https://github.com/raysan5/raylib/blob/master/src/rlgl.h)
  28. - Multiple **Fonts** formats supported (TTF, XNA fonts, AngelCode fonts)
  29. - Outstanding texture formats support, including compressed formats (DXT, ETC, ASTC)
  30. - **Full 3D support**, including 3D Shapes, Models, Billboards, Heightmaps and more!
  31. - Flexible Materials system, supporting classic maps and **PBR maps**
  32. - **Animated 3D models** supported (skeletal bones animation)
  33. - Shaders support, including model and **postprocessing** shaders.
  34. - **Powerful math module** for Vector, Matrix and Quaternion operations: [raymath](https://github.com/raysan5/raylib/blob/master/src/raymath.h)
  35. - Audio loading and playing with streaming support (WAV, OGG, MP3, FLAC, XM, MOD)
  36. - **VR stereo rendering** support with configurable HMD device parameters
  37. - Huge examples collection with [+120 code examples](https://github.com/raysan5/raylib/tree/master/examples)!
  38. - Bindings to [+50 programming languages](https://github.com/raysan5/raylib/blob/master/BINDINGS.md)!
  39. - Free and open source.
  40. raylib uses on its [core](https://github.com/raysan5/raylib/blob/master/src/core.c) module the outstanding [GLFW3](http://www.glfw.org/) library, embedded in the form of [rglfw](https://github.com/raysan5/raylib/blob/master/src/rglfw.c) module, to avoid external dependencies.
  41. raylib uses on its [raudio](https://github.com/raysan5/raylib/blob/master/src/raudio.c) module, the amazing [miniaudio](https://github.com/dr-soft/miniaudio) library to support multiple platforms and multiple audio backends.
  42. raylib uses internally several single-file header-only libraries to support different fileformats loading and saving, all those libraries are embedded with raylib and available in [src/external](https://github.com/raysan5/raylib/tree/master/src/external) directory. Check [raylib Wiki](https://github.com/raysan5/raylib/wiki/raylib-dependencies) for a detailed list.
  43. *On Android platform, `native_app_glue` module (provided by Android NDK) and native Android libraries are used to manage window/context, inputs and activity life cycle.*
  44. *On Raspberry Pi 0,1,2,3 platform (native mode), `Videocore API` and `EGL` libraries are used for window/context management. Inputs are processed using `evdev` Linux libraries*
  45. *On Raspberry Pi 4 platform (native mode), `DRM subsystem` and `GBM API` libraries are used for window/context management. Inputs are processed using `evdev` Linux libraries*
  46. *On Web platform, raylib uses `emscripten` provided libraries for several input events management, specially noticeable the touch events support.*
  47. build and installation
  48. ----------------------
  49. raylib binary releases for Windows, Linux and macOS are available at the [Github Releases page](https://github.com/raysan5/raylib/releases).
  50. raylib is also available via multiple [package managers](https://github.com/raysan5/raylib/issues/613) on multiple OS distributions.
  51. #### Installing and building raylib via vcpkg
  52. You can download and install raylib using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager:
  53. git clone https://github.com/Microsoft/vcpkg.git
  54. cd vcpkg
  55. ./bootstrap-vcpkg.sh
  56. ./vcpkg integrate install
  57. vcpkg install raylib
  58. *The raylib port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.*
  59. #### Installing and building raylib via conan
  60. You can download and install raylib using the [conan](https://conan.io) dependency manager:
  61. https://docs.conan.io/en/latest/getting_started.html
  62. *The raylib recipe in conan is kept up to date by conan team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/conan-io/conan-center-index) on the conan-center-index repository.*
  63. #### Building raylib on multiple platforms
  64. [raylib Wiki](https://github.com/raysan5/raylib/wiki#development-platforms) contains detailed instructions on building and usage on multiple platforms.
  65. - [Working on Windows](https://github.com/raysan5/raylib/wiki/Working-on-Windows)
  66. - [Working on macOS](https://github.com/raysan5/raylib/wiki/Working-on-macOS)
  67. - [Working on GNU Linux](https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux)
  68. - [Working on FreeBSD](https://github.com/raysan5/raylib/wiki/Working-on-FreeBSD)
  69. - [Working on Raspberry Pi](https://github.com/raysan5/raylib/wiki/Working-on-Raspberry-Pi)
  70. - [Working for Android](https://github.com/raysan5/raylib/wiki/Working-for-Android)
  71. - [Working for Web (HTML5)](https://github.com/raysan5/raylib/wiki/Working-for-Web-(HTML5))
  72. - [Working anywhere with CMake](https://github.com/raysan5/raylib/wiki/Working-with-CMake)
  73. *Note that Wiki is open for edit, if you find some issue while building raylib for your target platform, feel free to edit the Wiki or open and issue related to it.*
  74. #### Using raylib with multiple IDEs
  75. raylib has been developed on Windows platform using [Notepad++](https://notepad-plus-plus.org/) and [MinGW GCC](http://mingw-w64.org/doku.php) compiler but it can be used with other IDEs on multiple platforms.
  76. [Projects directory](https://github.com/raysan5/raylib/tree/master/projects) contains several ready-to-use **project templates** to build raylib and code examples with multiple IDEs.
  77. *Note that there are lots of IDEs supported, some of the provided templates could require some review, please, if you find some issue with some template or you think they could be improved, feel free to send a PR or open a related issue.*
  78. contact
  79. -------
  80. * Webpage: [http://www.raylib.com](http://www.raylib.com)
  81. * Discord: [https://discord.gg/raylib](https://discord.gg/raylib)
  82. * Twitter: [http://www.twitter.com/raysan5](http://www.twitter.com/raysan5)
  83. * Twitch: [http://www.twitch.tv/raysan5](http://www.twitch.tv/raysan5)
  84. * Reddit: [https://www.reddit.com/r/raylib](https://www.reddit.com/r/raylib)
  85. * Patreon: [https://www.patreon.com/raylib](https://www.patreon.com/raylib)
  86. * YouTube: [https://www.youtube.com/channel/raylib](https://www.youtube.com/c/raylib)
  87. If you are using raylib and enjoying it, please, join our [Discord server](https://discord.gg/raylib) and let us know! :)
  88. license
  89. -------
  90. raylib is licensed under an unmodified zlib/libpng license, which is an OSI-certified, BSD-like license that allows static linking with closed source software. Check [LICENSE](LICENSE) for further details.