From f8ead1febf3d1c12ffd23e8976f236ec100b9d02 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Sun, 9 Jan 2022 17:02:01 -0500 Subject: [PATCH] v4.0.3 --- CHANGELOG.md | 3 +- package.json => clib.json | 5 +- docs/_color_8hpp_source.html | 2 +- docs/_material_8hpp_source.html | 39 ++- docs/_mesh_8hpp_source.html | 153 ++++++------ docs/_model_8hpp_source.html | 46 ++-- docs/_model_animation_8hpp_source.html | 91 ++++--- docs/_physics_8hpp_source.html | 120 ++++----- docs/_ray_8hpp_source.html | 43 ++-- docs/_rectangle_8hpp_source.html | 55 +++-- docs/_texture_8hpp_source.html | 44 ++-- docs/_window_8hpp_source.html | 141 ++++++----- docs/classraylib_1_1_color-members.html | 2 +- docs/classraylib_1_1_color.html | 6 +- docs/classraylib_1_1_material-members.html | 2 + docs/classraylib_1_1_material.html | 8 + docs/classraylib_1_1_mesh-members.html | 110 ++++----- docs/classraylib_1_1_mesh.html | 26 +- docs/classraylib_1_1_model-members.html | 28 ++- docs/classraylib_1_1_model.html | 8 + docs/classraylib_1_1_physics-members.html | 2 +- docs/classraylib_1_1_physics.html | 6 +- docs/classraylib_1_1_ray-members.html | 23 +- docs/classraylib_1_1_ray.html | 28 ++- docs/classraylib_1_1_rectangle-members.html | 13 +- docs/classraylib_1_1_rectangle.html | 3 + docs/classraylib_1_1_texture-members.html | 27 +- docs/classraylib_1_1_texture.html | 12 +- docs/classraylib_1_1_window-members.html | 27 +- docs/classraylib_1_1_window.html | 12 +- docs/functions_b.html | 3 - docs/functions_d.html | 8 +- docs/functions_func_b.html | 3 - docs/functions_func_d.html | 8 +- docs/functions_func_g.html | 19 +- docs/functions_func_o.html | 3 + docs/functions_func_s.html | 7 +- docs/functions_func_t.html | 3 - docs/functions_func_u.html | 5 +- docs/functions_g.html | 19 +- docs/functions_o.html | 3 + docs/functions_s.html | 7 +- docs/functions_t.html | 3 - docs/functions_u.html | 5 +- docs/search/all_1.js | 3 +- docs/search/all_10.js | 240 +++++++++--------- docs/search/all_11.js | 41 ++-- docs/search/all_12.js | 19 +- docs/search/all_2.js | 48 ++-- docs/search/all_3.js | 19 +- docs/search/all_6.js | 257 ++++++++++---------- docs/search/all_7.js | 4 +- docs/search/all_8.js | 48 ++-- docs/search/all_9.js | 2 +- docs/search/all_a.js | 42 ++-- docs/search/all_b.js | 24 +- docs/search/all_c.js | 2 +- docs/search/all_d.js | 19 +- docs/search/all_e.js | 12 +- docs/search/all_f.js | 30 +-- docs/search/functions_1.js | 3 +- docs/search/functions_10.js | 236 +++++++++--------- docs/search/functions_11.js | 41 ++-- docs/search/functions_12.js | 19 +- docs/search/functions_2.js | 46 ++-- docs/search/functions_3.js | 19 +- docs/search/functions_6.js | 257 ++++++++++---------- docs/search/functions_7.js | 4 +- docs/search/functions_8.js | 46 ++-- docs/search/functions_9.js | 2 +- docs/search/functions_a.js | 42 ++-- docs/search/functions_b.js | 16 +- docs/search/functions_c.js | 2 +- docs/search/functions_d.js | 19 +- docs/search/functions_e.js | 10 +- docs/search/functions_f.js | 20 +- 76 files changed, 1432 insertions(+), 1341 deletions(-) rename package.json => clib.json (94%) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2f1a08..26c769d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [4.0.3] - Unreleased +## [4.0.3] - 2022-01-09 ### Changed - CMake now used for raylib dependency, rather than git submodules - Standardized functions across: @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Rectangle - Texture - Window +- Renamed `package.json` to `clib.json` to follow [clib](https://github.com/clibs/clib) schema ## [4.0.2] - 2021-12-24 ### Added diff --git a/package.json b/clib.json similarity index 94% rename from package.json rename to clib.json index 48c2662..b3d0fd2 100644 --- a/package.json +++ b/clib.json @@ -1,15 +1,12 @@ { "name": "raylib-cpp", "version": "4.0.3", + "repo": "RobLoach/raylib-cpp", "description": "raylib-cpp: C++ Object-Oriented Wrapper for raylib", "homepage": "https://github.com/robloach/raylib-cpp", "bugs": { "url": "https://github.com/robloach/raylib-cpp/issues" }, - "repository": { - "type": "git", - "url": "https://github.com/RobLoach/raylib-cpp.git" - }, "directories": { "lib": "include", "doc": "docs", diff --git a/docs/_color_8hpp_source.html b/docs/_color_8hpp_source.html index 2e3e48d..209233d 100644 --- a/docs/_color_8hpp_source.html +++ b/docs/_color_8hpp_source.html @@ -193,7 +193,7 @@ $(function() {
162  }
163 
164  inline Color& DrawText(
-
165  const ::Font font,
+
165  const ::Font& font,
166  const std::string& text,
167  ::Vector2 position,
168  ::Vector2 origin,
diff --git a/docs/_material_8hpp_source.html b/docs/_material_8hpp_source.html index 8434463..e38bb4e 100644 --- a/docs/_material_8hpp_source.html +++ b/docs/_material_8hpp_source.html @@ -149,27 +149,40 @@ $(function() {
91  return *this;
92  }
93 
-
94  private:
-
95  inline void set(const ::Material& material) {
-
96  shader = material.shader;
-
97  maps = material.maps;
-
98  params[0] = material.params[0];
-
99  params[1] = material.params[1];
-
100  params[2] = material.params[2];
-
101  params[3] = material.params[3];
-
102  }
-
103 };
-
104 } // namespace raylib
-
105 
-
106 #endif // RAYLIB_CPP_INCLUDE_MATERIAL_HPP_
+
97  inline const Material& DrawMesh(const ::Mesh& mesh, ::Matrix transform) const {
+
98  ::DrawMesh(mesh, *this, transform);
+
99  return *this;
+
100  }
+
101 
+
105  inline const Material& DrawMesh(const ::Mesh& mesh, ::Matrix* transforms, int instances) const {
+
106  ::DrawMeshInstanced(mesh, *this, transforms, instances);
+
107  return *this;
+
108  }
+
109 
+
110  private:
+
111  inline void set(const ::Material& material) {
+
112  shader = material.shader;
+
113  maps = material.maps;
+
114  params[0] = material.params[0];
+
115  params[1] = material.params[1];
+
116  params[2] = material.params[2];
+
117  params[3] = material.params[3];
+
118  }
+
119 };
+
120 } // namespace raylib
+
121 
+
122 #endif // RAYLIB_CPP_INCLUDE_MATERIAL_HPP_
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:7
+
Matrix type (OpenGL style 4x4 - right handed, column major)
Definition: Matrix.hpp:16
static std::vector< Material > Load(const std::string &fileName)
Load materials from model file.
Definition: Material.hpp:43
Material & SetTexture(int mapType, const ::Texture2D &texture)
Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...)
Definition: Material.hpp:89
Material()
Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)
Definition: Material.hpp:23
Shader type (generic)
Definition: Shader.hpp:14
void Unload()
Unload material from memory.
Definition: Material.hpp:79
+
const Material & DrawMesh(const ::Mesh &mesh, ::Matrix *transforms, int instances) const
Draw multiple mesh instances with material and different transforms.
Definition: Material.hpp:105
Material type (generic)
Definition: Material.hpp:14
+
const Material & DrawMesh(const ::Mesh &mesh, ::Matrix transform) const
Draw a 3d mesh with material and transform.
Definition: Material.hpp:97