From 335321e3aa238069df88cf06c98119ef4ef348d3 Mon Sep 17 00:00:00 2001 From: jussi Date: Fri, 19 May 2023 13:46:24 +0300 Subject: Material getter and get/set for parameters. --- API.md | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) (limited to 'API.md') diff --git a/API.md b/API.md index 2a2474b..d3cfdb4 100644 --- a/API.md +++ b/API.md @@ -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 --- -- cgit v1.2.3