WARNING: BREAKING: rlgl redesign -WIP-

rlgl module has been completely redesigned to move Mesh/Material structures to [models] module. Still some work to do, broken elements:
 - [models] OpenGL 1.1 mesh rendering: DrawMesh()
 - [models] Mesh Instancing: DrawMeshInstanced()
 - [models] Stereo rendering: DrawMesh()
 - [models] GL_FLOAT, GL_UNSIGNED_INT exposed
 - [models] GenMeshCustom()
 - [rlgl] GenTexture*() functions removal?
This commit is contained in:
Ray
2021-03-25 14:28:12 +01:00
parent 9569d6a802
commit cba412cc31
6 changed files with 744 additions and 780 deletions

View File

@@ -2082,13 +2082,13 @@ void UnloadShader(Shader shader)
// Begin custom shader mode
void BeginShaderMode(Shader shader)
{
rlSetShaderActive(shader);
rlSetShader(shader);
}
// End custom shader mode (returns to default shader)
void EndShaderMode(void)
{
BeginShaderMode(rlGetShaderDefault());
rlSetShader(rlGetShaderDefault());
}
// Get shader uniform location
@@ -2129,7 +2129,7 @@ void SetShaderValueMatrix(Shader shader, int locIndex, Matrix mat)
void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture)
{
rlEnableShader(shader.id);
rlSetUniformSampler(locIndex, texture);
rlSetUniformSampler(locIndex, texture.id);
//rlDisableShader();
}