RLGL Hello triangle example.

This commit is contained in:
jussi
2023-12-14 23:08:19 +02:00
parent 5ebdba6af0
commit ba4595305f
11 changed files with 254 additions and 87 deletions

View File

@@ -884,6 +884,21 @@ int lcoreIsShaderReady( lua_State *L ) {
return 1;
}
/*
> shaderId = RL.GetShaderId( Shader shader )
Get shader program id
- Success return int
*/
int lcoreGetShaderId( lua_State *L ) {
Shader *shader = uluaGetShader( L, 1 );
lua_pushinteger( L, shader->id );
return 1;
}
/*
> location = RL.GetShaderLocation( Shader shader, string uniformName )