SFPEW targets either:
- OpenGL ES 3.0 or newer, or
- desktop OpenGL 3.2 or newer.
The host determines the API by making its context current. SFPEW does not call eglBindAPI and does not select behavior from the backend identity. It uses the shared function-table surface and guards calls that are not universal.
Only EGL is loaded directly. Every backend GL procedure is requested through eglGetProcAddress, so the actual driver is exactly the one EGL associates with the current context. The loaded table has 417 declared GL function pointers; a null pointer means unavailable.
Most calls fall in the desktop GL 3.2 / ES 3.0 intersection. Notable exceptions are checked at the call site or supplied with a fallback:
| Family | Reason it is conditional | SFPEW behavior |
|---|---|---|
Separate vertex attribute binding (glBindVertexBuffer, glVertexAttribFormat, glVertexAttribBinding) |
GL 4.3 / ES 3.1 feature | Use when all required pointers exist; otherwise configure with glVertexAttribPointer. |
| Base-vertex and multi-draw variants | Not uniformly core on ES | Guard pointer use; bake/expand or use individual draws when necessary. |
glGetTexLevelParameteriv |
ES 3.1 feature | Guard and use compatibility bookkeeping where relevant. |
| Persistent storage | Desktop GL 4.4 or EXT_buffer_storage |
Use guarded storage entry points; fall back to ordinary buffer-data streaming. |
The precise classified inventory is generated into CPP/SimpleFPEWrapper/docs/backend-profile.json. tools/check_backend_profile.py checks both that newly declared functions are classified and that non-universal calls have a local null guard. It runs as backend_profile_current in CTest.
Some desktop-facing loaders reject an OpenGL ES ... GL_VERSION string. Getter code can report a desktop-equivalent version for ES 3.x while preserving the native backend string in the SFPEW suffix. This reporting adaptation is not a feature-selection mechanism; backend calls still rely on the function table and its guards.
Passing the profile check proves the pointer-safety contract, not full rendering conformance on every driver. The automated behavioral suite is primarily an ES 3 context suite; desktop GL use still requires target-driver validation.