From 22416cf2f0994b4fc8a5e1fae74a104bcbdb3468 Mon Sep 17 00:00:00 2001 From: BZLZHH Date: Sat, 21 Feb 2026 22:29:23 +0800 Subject: [PATCH] [Docs] (README): Introduce environment variables. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index a99728fc..5c41fa25 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,16 @@ If you want to try the project right now, you’ll need to build it yourself: * `MG_Test` and `MG_Benchmark` can only be built with Clang, not GCC. To enforce Clang, add `-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++` to your command. * On Android, tests and benchmarks are always disabled. +## Environment Variables + +MobileGL supports runtime configuration via environment variables. + +### Supported Keys + +| Variable | Description | Allowed Values | Default | +|-------------------------|--------------------------------------------------|--------------------------------------|----------------| +| `MOBILEGL_BACKEND_TYPE` | Select active backend implementation at startup. | `DirectGLES`, `DirectVulkan` | `DirectGLES` | + ## Notice * MobileGL is **not** production-ready currently.