mirror of
https://github.com/raysan5/raylib.git
synced 2026-06-13 21:01:53 +08:00
RAYMATH_EXTERN_INLINE was renamed to RAYMATH_HEADER_ONLY, which user code may define if they want to use it as header-only library. If multiple files in the same project define RAYMATH_HEADER_ONLY, they might each have duplicate out-of-line definitions of the same functions. By default, raymath.h exposes inline definitions, which instructs the compiler _not_ to generate out-of-line definitons, if out-of-line definitions are required, those of the file defined with RAYLIB_IMPLEMENTATION are used instead. There may be only one such file. In C++ mode, the compiler will select only one out-of-line definition automatically, so no need to define a RAYLIB_IMPLEMENTATION. Unfortunately, we have to remove raymath function declaration from raylib.h as those declarations would lead to duplicate out-of-line definitions which would yield linker errors. This problem didn't exist with GNU89 or C++, because there multiple defintions are ok, but in C99 they aren't. |
||
|---|---|---|
| .. | ||
| resources | ||
| models_billboard.c | ||
| models_billboard.png | ||
| models_box_collisions.c | ||
| models_box_collisions.png | ||
| models_cubicmap.c | ||
| models_cubicmap.png | ||
| models_geometric_shapes.c | ||
| models_geometric_shapes.png | ||
| models_heightmap.c | ||
| models_heightmap.png | ||
| models_material_pbr.c | ||
| models_material_pbr.png | ||
| models_mesh_generation.c | ||
| models_mesh_generation.png | ||
| models_mesh_picking.c | ||
| models_mesh_picking.png | ||
| models_obj_loading.c | ||
| models_obj_loading.png | ||
| models_skybox.c | ||
| models_skybox.png | ||
| models_yaw_pitch_roll.c | ||
| models_yaw_pitch_roll.png | ||
| rlights.h | ||