diff options
| author | jussi | 2023-05-19 13:46:24 +0300 |
|---|---|---|
| committer | jussi | 2023-05-19 13:46:24 +0300 |
| commit | 335321e3aa238069df88cf06c98119ef4ef348d3 (patch) | |
| tree | c15ba6edb5d13a022ef88e9a2cdc6a3644a5b737 /API.md | |
| parent | 870e3a46a6fcdbd5b264406984d232874f138ea3 (diff) | |
| download | reilua-enhanced-335321e3aa238069df88cf06c98119ef4ef348d3.tar.gz reilua-enhanced-335321e3aa238069df88cf06c98119ef4ef348d3.tar.bz2 reilua-enhanced-335321e3aa238069df88cf06c98119ef4ef348d3.zip | |
Material getter and get/set for parameters.
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 56 |
1 files changed, 55 insertions, 1 deletions
@@ -673,7 +673,7 @@ NPATCH_THREE_PATCH_VERTICAL NPATCH_THREE_PATCH_HORIZONTAL -## Globals - TextureModes +## Globals - TextureTypes TEXTURE_TYPE_TEXTURE @@ -4379,6 +4379,60 @@ Set shader for material --- +> success = RL.SetMaterialParams( Material material, float{} params ) + +Set material generic parameters ( if required ) + +- Failure return false +- Success return true + +--- + +> texture = RL.GetMaterialTexture( Material material, int mapType ) + +Get texture from material map type. Returns -1 if no texture. + +- Failure return false +- Success return int + +--- + +> color = RL.GetMaterialColor( Material material, int mapType ) + +Get color from material map type. + +- Failure return false +- Success return Color + +--- + +> value = RL.GetMaterialValue( Material material, int mapType ) + +Get color from material map type. + +- Failure return false +- Success return float + +--- + +> shader = RL.GetMaterialShader( Material material ) + +Get material shader. Returns -1 if no shader. + +- Failure return false +- Success return int + +--- + +> params = RL.GetMaterialParams( Material material ) + +Get material parameters. + +- Failure return false +- Success return float{} + +--- + ## Models - Model --- |
