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_
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:7
+
raylib::Matrix
Matrix type (OpenGL style 4x4 - right handed, column major)
Definition: Matrix.hpp:16
raylib::Material::Load
static std::vector< Material > Load(const std::string &fileName)
Load materials from model file.
Definition: Material.hpp:43
raylib::Material::SetTexture
Material & SetTexture(int mapType, const ::Texture2D &texture)
Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...)
Definition: Material.hpp:89
raylib::Material::Material
Material()
Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)
Definition: Material.hpp:23
raylib::Shader
Shader type (generic)
Definition: Shader.hpp:14
raylib::Material::Unload
void Unload()
Unload material from memory.
Definition: Material.hpp:79
+
raylib::Material::DrawMesh
const Material & DrawMesh(const ::Mesh &mesh, ::Matrix *transforms, int instances) const
Draw multiple mesh instances with material and different transforms.
Definition: Material.hpp:105
raylib::Material
Material type (generic)
Definition: Material.hpp:14
+
raylib::Material::DrawMesh
const Material & DrawMesh(const ::Mesh &mesh, ::Matrix transform) const
Draw a 3d mesh with material and transform.
Definition: Material.hpp:97