Contributing to raylib
Hello contributors! Welcome to raylib!
This document contains a set of guidelines to contribute to the project. These are mostly guidelines, not rules. Use your best judgement, and feel free to propose changes to this document in a pull-request.
- raylib is a tool to enjoy videogames programming, every single function in raylib should be a tutorial on itself.
- 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.
- raylib is open source and free; educators and institutions can use this tool to TEACH videogames programming completely by free.
- raylib is collaborative; contribution of tutorials / code-examples / bugs-solving / code-comments are highly appreciated.
- raylib's license (and its external libs respective licenses) allow using it for commercial products.
Some interesting reads to start with
raylib Wiki contains some information about the library and is open to anyone for edit. Feel free to review it if required, just take care not to break something.
raylib C coding conventions
Despite being written in C, raylib does not follow the standard Hungarian notation for C, it follows Pascal-case/camel-case notation, more common on C# language. All code formatting decisions have been carefully taken to make it easier for students to read, write and understand code.
Source code is extensively commented for that purpose, raylib primary learning method is:
learn by reading code and examples
For detailed information on building raylib and examples, please check raylib Wiki.
Opening new Issues
To open new issue for raylib (bug, enhancement, discussion...), just try to follow these rules:
- Make sure the issue has not already been reported before by searching on GitHub under Issues.
- If you're unable to find an open issue addressing the problem, open a new one. Be sure to include a title and clear description, as much relevant information as possible, and a code sample demonstrating the unexpected behavior.
- If applies, attach some screenshot of the issue and a .zip file with the code sample and required resources.
- On issue description, add a brackets tag about the raylib module that relates to this issue. If don't know the module, just report the issue, I will review it.
- You can check other issues to see how is being done!
Sending a Pull-Request
- Make sure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable.
- 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.
- 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 if you cannot test all the platforms.
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:
- raylib : raylib C/C++ version (default)
- raylib-lua : raylib Lua binding
- raylib-lua-ffi : raylib Lua ffi binding
- raylib-go : raylib Go binding
- raylib-Nim : raylib Nim binding
- cray - raylib Crystal binding
- Graphics::Raylib : raylib Perl wrapper
- raylib-pascal - raylib Pascal binding
- Raylib-cs : raylib C# binding
- RaylibSharp : raylib C# binding
- raylib-ruby-ffi : raylib Ruby binding
- raylib-rs : raylib Rust binding
- raylib-py : raylib Python binding
- raylib-haskell : raylib Haskell binding
- raylib-java : raylib Java binding
- raylib-chaiscript : raylib ChaiScript binding
- node-raylib : Node.js raylib binding
- raylib flat-assembler Usage example
- raylib COBOL Usage example
Usually, raylib bindings follow the convention:
Let me know if you're writing a new binding for raylib, I will list it here and I usually provide the icon/logo for that new language binding.
If you have any doubt, don't hesitate to contact me!. You can write me a direct mail but you can also contact me on the following networks:
- raylib reddit - A good place for discussions or to ask for help.
- raylib Discord - A direct communication channel for project discussions.
- raylib twitter - My personal twitter account, I usually post about raylib, you can send me PMs.
- raylib web - On top-right corner there is a bunch of networks where you can find me.
Thank you very much for your time! :)
Here is a list of raylib contributors, these people have invested part of their time contributing (in some way or another) to make the raylib project better. Huge thanks to all of them!
- Zopokx for testing the web.
- Elendow for testing and helping on web development.
- Victor Dual for implementing and testing 3D shapes functions.
- Marc Palau for implementing and testing 3D shapes functions and contribute on camera and gestures modules.
- Kevin Gato for improving texture internal formats support and helping on raygui development.
- Daniel Nicolas for improving texture internal formats support and helping on raygui development.
- Marc Agüera for testing and using raylib on a real product (Koala Seasons)
- Daniel Moreno for testing and using raylib on a real product (Koala Seasons)
- Daniel Gomez for testing and using raylib on a real product (Koala Seasons)
- Sergio Martinez for helping on raygui development and tools development (raygui_styler).
- Victor Fisac for developing physics raylib module (physac) and implementing PBR materials and lighting systems... among multiple other improvements and multiple tools and games.
- Albert Martos for helping on raygui and porting examples and game-templates to Android and HTML5.
- Ian Eito for helping on raygui and porting examples and game-templates to Android and HTML5.
- procedural for testing raylib on Linux, correcting some bugs and adding several mouse functions.
- Chris Hemingway for improving raylib on OSX build system.
- Emanuele Petriglia for working on multiple GNU/Linux improvements and developing TicTacToe raylib game.
- Joshua Reisenauer for adding audio modules support (XM, MOD) and reviewing audio system.
- Marcelo Paez for his help on OSX to solve High DPI display issue. Thanks Marcelo!
- Ghassan Al-Mashareqa for his amazing contribution with raylib Lua module, I just work over his code to implement rlua
- Teodor Stoenescu for his improvements on OBJ object loading.
- RDR8 for helping with Linux build improvements
- Saggi Mizrahi for multiple fixes on Linux and audio system
- Daniel Lemos for fixing issues on Linux games building
- Joel Davis for adding raycast picking utilities and a great example
- Richard Goodwin for adding RPI touchscreen support
- Milan Nikolic for adding Android build support with custom standalone toolchain
- Michael Vetter for improvements on build system and his work on Suse Linux package... and multiple fixes!
- Wilhem Barbier for adding Image generation functions and some fixes
- Benjamin Summerton for improving OSX building and his amazing work on CMake build sytem
- MartinFX for adding compilation support for FreeBSD OS and derivatives
- Wilhem Barbier for supporting default shaders on shader loading, if shader not provided
- Ahmad Fatoum for implementing continuus integration support for raylib (Travis and AppVeyor) and greatly improving build system.
- SamNChiet for his work on UWP inputs implementation.
- David Reid for a complete review of audio module to support his amazing mini_al audio library.
- Kai for multiple code reviews and improvements.
- RDR8 for his work on Makefiles for Linux
- Max Danielsson for adding support for orthographic 3d camera projection
- Lumaio for his great work on GBuffers and GetCollisionRayModel()
- Jonas Daeyaert for his amazing work on IQM animated models support
- Seth Archambault for his work on Android Gamepad support (SNES model)
- D3nX for adding Code::Blocks project template.
Please, if I forget someone in this list, excuse me and send a PR!