raylib-cpp
C++ object-oriented wrapper library for raylib.
|
Material type (generic) More...
Public Member Functions | |
Material () | |
Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps) | |
Material (const ::Material &material) | |
Material (const Material &)=delete | |
Material (Material &&other) | |
void | DrawMesh (const ::Mesh &mesh, ::Matrix *transforms, int instances) const |
Draw multiple mesh instances with material and different transforms. | |
void | DrawMesh (const ::Mesh &mesh, ::Matrix transform) const |
Draw a 3d mesh with material and transform. | |
::MaterialMap * | GetMaps () const |
Retrieves the maps value for the object. More... | |
::Shader | GetShader () const |
Retrieves the shader value for the object. More... | |
bool | IsValid () const |
Check if material is ready. | |
Material & | operator= (const ::Material &material) |
Material & | operator= (const Material &)=delete |
Material & | operator= (Material &&other) noexcept |
void | SetMaps (::MaterialMap *value) |
Sets the maps value for the object. More... | |
void | SetShader (::Shader value) |
Sets the shader value for the object. More... | |
Material & | SetTexture (int mapType, const ::Texture2D &texture) |
Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...) | |
void | Unload () |
Unload material from memory. | |
Static Public Member Functions | |
static std::vector< Material > | Load (const std::string &fileName) |
Load materials from model file. | |
Protected Member Functions | |
void | set (const ::Material &material) |
Material type (generic)
Definition at line 14 of file Material.hpp.
|
inline |
Retrieves the maps value for the object.
Definition at line 49 of file Material.hpp.
|
inline |
Retrieves the shader value for the object.
Definition at line 48 of file Material.hpp.
|
inline |
Sets the maps value for the object.
value | The value of which to set maps to. |
Definition at line 49 of file Material.hpp.
|
inline |
Sets the shader value for the object.
value | The value of which to set shader to. |
Definition at line 48 of file Material.hpp.