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.

141 lines
10 KiB

  1. ## Contributing to raylib
  2. Hello contributors! Welcome to raylib!
  3. This document contains a set of guidelines to contribute to the project. These are mostly guidelines, not rules.
  4. Use your best judgement, and feel free to propose changes to this document in a pull-request.
  5. ### raylib philosophy
  6. - raylib is a tool to LEARN videogames programming, every single function in raylib should be a tutorial on itself.
  7. - raylib is SIMPLE and EASY-TO-USE, I tried to keep it compact with a small set of functions, if a function is too complex or is not clearly useful, better not to include it.
  8. - raylib is open source and free; educators and institutions can use this tool to TEACH videogames programming completely by free.
  9. - raylib is collaborative; contribution of tutorials / code-examples / bugs-solving / code-comments are highly appreciated.
  10. - raylib's license (and its external libs respective licenses) allow using it for commercial products.
  11. ### Some interesting reads to start with
  12. - [raylib history](HISTORY.md)
  13. - [raylib architecture](https://github.com/raysan5/raylib/wiki/raylib-architecture)
  14. - [raylib license](LICENSE.md)
  15. - [raylib roadmap](ROADMAP.md)
  16. [raylib Wiki](https://github.com/raysan5/raylib/wiki) contains some information about the library and is open to anyone for edit.
  17. Feel free to review it if required, just take care not to break something.
  18. ### raylib C coding conventions
  19. Despite being written in C, raylib does not follow the standard Hungarian notation for C,
  20. it [follows Pascal-case/camel-case notation](https://github.com/raysan5/raylib/wiki/raylib-coding-conventions),
  21. more common on C# language. All code formatting decisions have been carefully taken
  22. to make it easier for students to read, write and understand code.
  23. Source code is extensively commented for that purpose, raylib primary learning method is:
  24. > learn by reading code and examples
  25. For detailed information on building raylib and examples, please check [raylib Wiki](https://github.com/raysan5/raylib/wiki).
  26. ### Opening new Issues
  27. To open new issue for raylib (bug, enhancement, discussion...), just try to follow these rules:
  28. - Make sure the issue has not already been reported before by searching on GitHub under Issues.
  29. - If you're unable to find an open issue addressing the problem, open a new one. Be sure to include a
  30. title and clear description, as much relevant information as possible, and a code sample demonstrating the unexpected behavior.
  31. - If applies, attach some screenshot of the issue and a .zip file with the code sample and required resources.
  32. - On issue description, add a brackets tag about the raylib module that relates to this issue.
  33. If don't know the module, just report the issue, I will review it.
  34. - You can check other issues to see how is being done!
  35. ### Sending a Pull-Request
  36. - Make sure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable.
  37. - Don't send big pull-requests (lots of changelists), they are difficult to review. It's better to send small pull-request, one at a time.
  38. - Verify that changes don't break the build (at least on Windows platform). As many platforms where you can test it, the better, but don't worry
  39. if you cannot test all the platforms.
  40. ### raylib bindings
  41. Some people ported raylib to other languages in form of bindings or wrappers to the library, here is a list with the ones I'm aware of:
  42. - [raylib C/C++ version (default)](https://github.com/raysan5/raylib)
  43. - [raylib Lua binding](https://github.com/raysan5/raylib-lua)
  44. - [raylib Go binding](https://github.com/gen2brain/raylib-go)
  45. - [raylib Nim binding](https://gitlab.com/define-private-public/raylib-Nim)
  46. - [raylib Crystal binding](https://gitlab.com/Zatherz/cray)
  47. - [raylib Perl wrapper](https://metacpan.org/pod/Graphics::Raylib)
  48. - [raylib Pascal binding](https://github.com/drezgames/raylib-pascal)
  49. - [raylib flat-assembler Usage example](http://forum.raylib.com/index.php?p=/discussion/comment/425/#Comment_425)
  50. - [raylib COBOL Usage example](https://github.com/Martinfx/Cobol/tree/master/OpenCobol/Games/raylib)
  51. - [raylib C# binding](https://github.com/ChrisDill/Raylib-cs)
  52. - [raylib C# binding](https://github.com/TheLumaio/RaylibSharp)
  53. - [raylib Ruby binding](https://github.com/D3nX/raylib-ruby-ffi)
  54. - [raylib Rust binding](https://github.com/deltaphc/raylib-rs)
  55. - [raylib Python binding](https://github.com/overdev/raylibpy)
  56. Usually, raylib bindings follow the convention: `raylib-{language}`
  57. Let me know if you're writing a new binding for raylib, I will list it here and I usually
  58. provide the icon/logo for that new language binding.
  59. ### Contact information
  60. If you have any doubt, don't hesitate to [contact me](mailto:ray@raylib.com)!.
  61. You can write me a direct mail but you can also contact me on the following networks:
  62. - [raylib forum](http://forum.raylib.com/) - A good place for discussions or to ask for help.
  63. - [raylib Discord](https://discord.gg/VkzNHUE) - A direct communication channel for project discussions.
  64. - [raylib twitter](https://twitter.com/raysan5) - My personal twitter account, I usually post about raylib, you can send me PMs.
  65. - [raylib web](http://www.raylib.com/) - On top-right corner there is a bunch of networks where you can find me.
  66. Thank you very much for your time! :)
  67. ----
  68. Here is a list of raylib contributors, these people have invested part of their time
  69. contributing (in some way or another) to make the raylib project better. Huge thanks to all of them!
  70. - [Zopokx](https://github.com/Zopokx) for testing the web.
  71. - [Elendow](http://www.elendow.com) for testing and helping on web development.
  72. - Victor Dual for implementing and testing 3D shapes functions.
  73. - Marc Palau for implementing and testing 3D shapes functions and contribute on camera and gestures modules.
  74. - Kevin Gato for improving texture internal formats support and helping on raygui development.
  75. - Daniel Nicolas for improving texture internal formats support and helping on raygui development.
  76. - Marc Agüera for testing and using raylib on a real product ([Koala Seasons](http://www.koalaseasons.com))
  77. - Daniel Moreno for testing and using raylib on a real product ([Koala Seasons](http://www.koalaseasons.com))
  78. - Daniel Gomez for testing and using raylib on a real product ([Koala Seasons](http://www.koalaseasons.com))
  79. - [Sergio Martinez](https://github.com/anidealgift) for helping on raygui development and tools development (raygui_styler).
  80. - [Victor Fisac](https://github.com/victorfisac) for developing physics raylib module (physac) and implementing PBR materials and lighting systems... among multiple other improvements and multiple tools and games.
  81. - Albert Martos for helping on raygui and porting examples and game-templates to Android and HTML5.
  82. - Ian Eito for helping on raygui and porting examples and game-templates to Android and HTML5.
  83. - [procedural](https://github.com/procedural) for testing raylib on Linux, correcting some bugs and adding several mouse functions.
  84. - [Chris Hemingway](https://github.com/cHemingway) for improving raylib on OSX build system.
  85. - [Emanuele Petriglia](https://github.com/LelixSuper) for working on multiple GNU/Linux improvements and developing [TicTacToe](https://github.com/LelixSuper/TicTacToe) raylib game.
  86. - [Joshua Reisenauer](https://github.com/kd7tck) for adding audio modules support (XM, MOD) and reviewing audio system.
  87. - [Marcelo Paez](https://github.com/paezao) for his help on OSX to solve High DPI display issue. Thanks Marcelo!
  88. - [Ghassan Al-Mashareqa](https://github.com/ghassanpl) for his amazing contribution with raylib Lua module, I just work over his code to implement [rlua](https://github.com/raysan5/raylib/blob/master/src/rlua.h)
  89. - [Teodor Stoenescu](https://github.com/teodor-stoenescu) for his improvements on OBJ object loading.
  90. - [RDR8](https://github.com/RDR8) for helping with Linux build improvements
  91. - [Saggi Mizrahi](https://github.com/ficoos) for multiple fixes on Linux and audio system
  92. - [Daniel Lemos](https://github.com/xspager) for fixing issues on Linux games building
  93. - [Joel Davis](https://github.com/joeld42) for adding raycast picking utilities and a [great example](https://github.com/raysan5/raylib/blob/master/examples/models/models_mesh_picking.c)
  94. - [Richard Goodwin](https://github.com/AudioMorphology) for adding RPI touchscreen support
  95. - [Milan Nikolic](https://github.com/gen2brain) for adding Android build support with custom standalone toolchain
  96. - [Michael Vetter](https://github.com/jubalh) for improvements on build system and his work on Suse Linux package... and multiple fixes!
  97. - [Wilhem Barbier](https://github.com/nounoursheureux) for adding Image generation functions and some fixes
  98. - [Benjamin Summerton](https://github.com/define-private-public) for improving OSX building and his amazing work on CMake build sytem
  99. - [MartinFX](https://github.com/Martinfx) for adding compilation support for FreeBSD OS and derivatives
  100. - [Wilhem Barbier](https://github.com/nounoursheureux) for supporting default shaders on shader loading, if shader not provided
  101. - [Ahmad Fatoum](https://github.com/a3f) for implementing continuus integration support for raylib (Travis and AppVeyor) and greatly improving build system.
  102. - [SamNChiet](https://github.com/SamNChiet) for his work on UWP inputs implementation.
  103. - [David Reid](https://github.com/mackron) for a complete review of audio module to support his amazing mini_al audio library.
  104. - [Kai](https://github.com/questor) for multiple code reviews and improvements.
  105. - [RDR8](https://github.com/RDR8) for his work on Makefiles for Linux
  106. - [Max Danielsson](https://github.com/autious) for adding support for orthographic 3d camera projection
  107. - [Lumaio](https://github.com/TheLumaio) for his great work on GBuffers and GetCollisionRayModel()
  108. - [Jonas Daeyaert](https://github.com/culacant) for his amazing work on IQM animated models support
  109. - [Seth Archambault](https://github.com/SethArchambault) for his work on Android Gamepad support (SNES model)
  110. - [D3nX](https://github.com/D3nX) for adding Code::Blocks project template.
  111. Please, if I forget someone in this list, excuse me and send a PR!