25 #ifndef RAYLIB_CPP_INCLUDE_MATERIAL_HPP_
26 #define RAYLIB_CPP_INCLUDE_MATERIAL_HPP_
31 #include "./raylib.hpp"
32 #include "./raylib-cpp-utils.hpp"
45 set(LoadMaterialDefault());
55 static std::vector<Material>
Load(
const std::string& fileName) {
57 ::Material* materials = ::LoadMaterials(fileName.c_str(), &count);
58 return std::vector<Material>(materials, materials + count);
62 GETTERSETTER(::MaterialMap*, Maps, maps)
63 GETTERSETTER(
float*, Params, params)
79 ::UnloadMaterial(*
this);
86 ::SetMaterialTexture(
this, mapType, texture);
92 shader = material.shader;
94 params = material.params;
99 #endif // RAYLIB_CPP_INCLUDE_MATERIAL_HPP_