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)
42 GETTERSETTER(
float*, Params, params)
54 ::UnloadMaterial(*
this);
63 ::SetMaterialTexture(
this, mapType, texture);
68 inline void set(const ::Material& material) {
69 shader = material.shader;
71 params = material.params;
76 #endif // RAYLIB_CPP_INCLUDE_MATERIAL_HPP_