選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

161 行
10 KiB

  1. <img align="left" src="https://github.com/raysan5/raylib/blob/master/logo/raylib_logo_animation.gif" width="288px">
  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. ---
  7. <br>
  8. [![GitHub contributors](https://img.shields.io/github/contributors/raysan5/raylib)](https://github.com/raysan5/raylib/graphs/contributors)
  9. [![GitHub All Releases](https://img.shields.io/github/downloads/raysan5/raylib/total)](https://github.com/raysan5/raylib/releases)
  10. [![GitHub commits since tagged version](https://img.shields.io/github/commits-since/raysan5/raylib/3.5.0)](https://github.com/raysan5/raylib/commits/master)
  11. [![License](https://img.shields.io/badge/license-zlib%2Flibpng-blue.svg)](LICENSE)
  12. [![Chat on Discord](https://img.shields.io/discord/426912293134270465.svg?logo=discord)](https://discord.gg/raylib)
  13. [![GitHub stars](https://img.shields.io/github/stars/raysan5/raylib?style=social)](https://github.com/raysan5/raylib/stargazers)
  14. [![Twitter Follow](https://img.shields.io/twitter/follow/raysan5?style=social)](https://twitter.com/raysan5)
  15. [![Subreddit subscribers](https://img.shields.io/reddit/subreddit-subscribers/raylib?style=social)](https://www.reddit.com/r/raylib/)
  16. [![Windows](https://github.com/raysan5/raylib/workflows/Windows/badge.svg)](https://github.com/raysan5/raylib/actions?query=workflow%3AWindows)
  17. [![Linux](https://github.com/raysan5/raylib/workflows/Linux/badge.svg)](https://github.com/raysan5/raylib/actions?query=workflow%3ALinux)
  18. [![macOS](https://github.com/raysan5/raylib/workflows/macOS/badge.svg)](https://github.com/raysan5/raylib/actions?query=workflow%3AmacOS)
  19. [![Android](https://github.com/raysan5/raylib/workflows/Android/badge.svg)](https://github.com/raysan5/raylib/actions?query=workflow%3AAndroid)
  20. [![WebAssembly](https://github.com/raysan5/raylib/workflows/WebAssembly/badge.svg)](https://github.com/raysan5/raylib/actions?query=workflow%3AWebAssembly)
  21. [![CMakeBuilds](https://github.com/raysan5/raylib/workflows/CMakeBuilds/badge.svg)](https://github.com/raysan5/raylib/actions?query=workflow%3ACMakeBuilds)
  22. [![Windows Examples](https://github.com/raysan5/raylib/actions/workflows/windows_examples.yml/badge.svg)](https://github.com/raysan5/raylib/actions/workflows/windows_examples.yml)
  23. [![Linux Examples](https://github.com/raysan5/raylib/actions/workflows/linux_examples.yml/badge.svg)](https://github.com/raysan5/raylib/actions/workflows/linux_examples.yml)
  24. features
  25. --------
  26. - **NO external dependencies**, all required libraries are [bundled into raylib](https://github.com/raysan5/raylib/tree/master/src/external)
  27. - Multiple platforms supported: **Windows, Linux, MacOS, RPI, Android, HTML5... and more!**
  28. - Written in plain C code (C99) in PascalCase/camelCase notation
  29. - Hardware accelerated with OpenGL (**1.1, 2.1, 3.3 or ES 2.0**)
  30. - **Unique OpenGL abstraction layer** (usable as standalone module): [rlgl](https://github.com/raysan5/raylib/blob/master/src/rlgl.h)
  31. - Multiple **Fonts** formats supported (TTF, XNA fonts, AngelCode fonts)
  32. - Multiple texture formats supported, including **compressed formats** (DXT, ETC, ASTC)
  33. - **Full 3D support**, including 3D Shapes, Models, Billboards, Heightmaps and more!
  34. - Flexible Materials system, supporting classic maps and **PBR maps**
  35. - **Animated 3D models** supported (skeletal bones animation) (IQM, glTF)
  36. - Shaders support, including model and **postprocessing** shaders.
  37. - **Powerful math module** for Vector, Matrix and Quaternion operations: [raymath](https://github.com/raysan5/raylib/blob/master/src/raymath.h)
  38. - Audio loading and playing with streaming support (WAV, OGG, MP3, FLAC, XM, MOD)
  39. - **VR stereo rendering** support with configurable HMD device parameters
  40. - Huge examples collection with [+120 code examples](https://github.com/raysan5/raylib/tree/master/examples)!
  41. - Bindings to [+50 programming languages](https://github.com/raysan5/raylib/blob/master/BINDINGS.md)!
  42. - **Free and open source**.
  43. raylib uses internally some libraries for window/graphics/inputs management and also to support different fileformats loading, all those libraries are embedded with raylib and are available in [src/external](https://github.com/raysan5/raylib/tree/master/src/external) directory. Check [raylib dependencies](https://github.com/raysan5/raylib/wiki/raylib-dependencies) on [raylib Wiki](https://github.com/raysan5/raylib/wiki) for a detailed list.
  44. basic example
  45. --------------
  46. This is a basic raylib example, it creates a window and it draws the text `"Congrats! You created your first window!"` in the middle of the screen. Check this example [running live on web here](https://www.raylib.com/examples/web/core/loader.html?name=core_basic_window).
  47. ```c
  48. #include "raylib.h"
  49. int main(void)
  50. {
  51. InitWindow(800, 450, "raylib [core] example - basic window");
  52. while (!WindowShouldClose())
  53. {
  54. BeginDrawing();
  55. ClearBackground(RAYWHITE);
  56. DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
  57. EndDrawing();
  58. }
  59. CloseWindow();
  60. return 0;
  61. }
  62. ```
  63. build and installation
  64. ----------------------
  65. raylib binary releases for Windows, Linux and macOS are available at the [Github Releases page](https://github.com/raysan5/raylib/releases).
  66. raylib is also available via multiple [package managers](https://github.com/raysan5/raylib/issues/613) on multiple OS distributions.
  67. #### Installing and building raylib via vcpkg
  68. You can download and install raylib using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager:
  69. git clone https://github.com/Microsoft/vcpkg.git
  70. cd vcpkg
  71. ./bootstrap-vcpkg.sh
  72. ./vcpkg integrate install
  73. vcpkg install raylib
  74. *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.*
  75. #### Installing and building raylib via conan
  76. You can download and install raylib using the [conan](https://conan.io) dependency manager:
  77. https://docs.conan.io/en/latest/getting_started.html
  78. *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.*
  79. #### Installing and building raylib on multiple platforms
  80. [raylib Wiki](https://github.com/raysan5/raylib/wiki#development-platforms) contains detailed instructions on building and usage on multiple platforms.
  81. - [Working on Windows](https://github.com/raysan5/raylib/wiki/Working-on-Windows)
  82. - [Working on macOS](https://github.com/raysan5/raylib/wiki/Working-on-macOS)
  83. - [Working on GNU Linux](https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux)
  84. - [Working on FreeBSD](https://github.com/raysan5/raylib/wiki/Working-on-FreeBSD)
  85. - [Working on Raspberry Pi](https://github.com/raysan5/raylib/wiki/Working-on-Raspberry-Pi)
  86. - [Working for Android](https://github.com/raysan5/raylib/wiki/Working-for-Android)
  87. - [Working for Web (HTML5)](https://github.com/raysan5/raylib/wiki/Working-for-Web-(HTML5))
  88. - [Working anywhere with CMake](https://github.com/raysan5/raylib/wiki/Working-with-CMake)
  89. *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.*
  90. #### Setup raylib with multiple IDEs
  91. 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.
  92. [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.
  93. *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.*
  94. learning and docs
  95. ------------------
  96. raylib is designed to be learned using [the examples](https://github.com/raysan5/raylib/tree/master/examples) as the main reference. There is no standard API documentation but there is a [**cheatsheet**](https://www.raylib.com/cheatsheet/cheatsheet.html) containing all the functions available on the library and a short description of each one of them, input parameters and result value names should be intuitive enough to understand how each function works.
  97. Some additional documentation about raylib design can be found in raylib GitHub Wiki. Here the more relevant links:
  98. - [raylib cheatsheet](https://www.raylib.com/cheatsheet/cheatsheet.html)
  99. - [raylib architecture](https://github.com/raysan5/raylib/wiki/raylib-architecture)
  100. - [raylib library design](https://github.com/raysan5/raylib/wiki)
  101. - [raylib examples collection](https://github.com/raysan5/raylib/tree/master/examples)
  102. - [raylib games collection](https://github.com/raysan5/raylib-games)
  103. contact and networks
  104. ---------------------
  105. raylib is present in several networks and raylib community is growing everyday. If you are using raylib and enjoying it, feel free to join us in any of these networks. The most active network is our [Discord server](https://discord.gg/raylib)! :)
  106. - Webpage: [http://www.raylib.com](http://www.raylib.com)
  107. - Discord: [https://discord.gg/raylib](https://discord.gg/raylib)
  108. - Twitter: [http://www.twitter.com/raysan5](http://www.twitter.com/raysan5)
  109. - Twitch: [http://www.twitch.tv/raysan5](http://www.twitch.tv/raysan5)
  110. - Reddit: [https://www.reddit.com/r/raylib](https://www.reddit.com/r/raylib)
  111. - Patreon: [https://www.patreon.com/raylib](https://www.patreon.com/raylib)
  112. - YouTube: [https://www.youtube.com/channel/raylib](https://www.youtube.com/c/raylib)
  113. license
  114. -------
  115. 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.