diff --git a/raylib-architecture.md b/raylib-architecture.md index 0f03a40..dac6634 100644 --- a/raylib-architecture.md +++ b/raylib-architecture.md @@ -14,14 +14,14 @@ raylib is a very modular library, defined by a small number of specific and self Those 7 modules share a common header: [`raylib.h`](https://github.com/raysan5/raylib/blob/master/src/raylib.h), all user functions are defined in that header, despite the fact they are divided internally in 7 modules. That way, the user just needs to include `raylib.h` to get all raylib functionality. Other libraries use one header for every module (that way the user can choose included modules) or also headers that refer to other headers. raylib uses a simpler approach that's easier for novice (and expert) users. Apart from those 7 main modules, some other modules have been implemented with additional features: - - [`raymath`](https://github.com/raysan5/raylib/blob/develop/src/raymath.h): Vector2, Vector3, Matrix and Quaternion math related functions - - [`camera`](https://github.com/raysan5/raylib/blob/develop/src/camera.h): 3D Camera system (free, 1st person, 3rd person, custom) - - [`gestures`](https://github.com/raysan5/raylib/blob/develop/src/gestures.h): Touch gestures detection and processing (Tap, Swipe, Drag, Pinch) + - [`raymath`](https://github.com/raysan5/raylib/blob/master/src/raymath.h): Vector2, Vector3, Matrix and Quaternion math related functions + - [`camera`](https://github.com/raysan5/raylib/blob/master/src/camera.h): 3D Camera system (free, 1st person, 3rd person, custom) + - [`gestures`](https://github.com/raysan5/raylib/blob/master/src/gestures.h): Touch gestures detection and processing (Tap, Swipe, Drag, Pinch) - [`raygui`](https://github.com/raysan5/raygui): Simple IMGUI system with several controls for tools development - - [`easings`](https://github.com/raysan5/raylib/blob/develop/src/easings.h): Easing functions for animations (based on [Robert Penner](http://robertpenner.com/easing/) implementation) + - [`easings`](https://github.com/raysan5/raylib/blob/master/src/easings.h): Easing functions for animations (based on [Robert Penner](http://robertpenner.com/easing/) implementation) - [`physac`](https://github.com/victorfisac/Physac): 2D physics library (collision detection, resolution, dinamics...) -Most of the modules have been designed to be as decoupled as possible from other modules, so, some modules can be used independently of raylib, as standalone libraries. For example, two such modules are `rlgl` ([example](https://github.com/raysan5/raylib/blob/develop/examples/others/rlgl_standalone.c)) and `audio` ([example](https://github.com/raysan5/raylib/blob/develop/examples/others/audio_standalone.c)). +Most of the modules have been designed to be as decoupled as possible from other modules, so, some modules can be used independently of raylib, as standalone libraries. For example, two such modules are `rlgl` ([example](https://github.com/raysan5/raylib/blob/master/examples/others/rlgl_standalone.c)) and `audio` ([example](https://github.com/raysan5/raylib/blob/master/examples/others/audio_standalone.c)). Most of the secondary modules can also be used as standalone libraries: `raymath`, `camera`, `gestures`, `raygui`, `easings`, `physac`. All those modules are distributed as configurable single-file header-only libraries to be independently added to any project. Being header-only means the header also contains function implementations; that's extremely useful if you have a library (a bunch of functions) that you only want to drop on your code-base to cover a very specific functionality. However, creating a header-only module is not trivial. That module has to minimize external dependencies and global variables and give a very specific functionality; let's say it has to be completely portable.