1 #ifndef RAYLIB_CPP_INCLUDE_MATERIAL_HPP_
2 #define RAYLIB_CPP_INCLUDE_MATERIAL_HPP_
7 #include "./raylib.hpp"
8 #include "./raylib-cpp-utils.hpp"
16 Material(const ::Material& material) {
24 set(LoadMaterialDefault());
34 static std::vector<Material>
Load(
const std::string& fileName) {
36 ::Material* materials = ::LoadMaterials(fileName.c_str(), &count);
37 return std::vector<Material>(materials, materials + count);
41 GETTERSETTER(::MaterialMap*, Maps, maps)
55 ::UnloadMaterial(*
this);
64 ::SetMaterialTexture(
this, mapType, texture);
69 inline void set(const ::Material& material) {
70 shader = material.shader;
72 params[0] = material.params[0];
73 params[1] = material.params[1];
74 params[2] = material.params[2];
75 params[3] = material.params[3];
80 #endif // RAYLIB_CPP_INCLUDE_MATERIAL_HPP_