|
@@ -334,8 +334,9 @@
|
|
|
|
|
|
int sapp_gl_get_major_version(void)
|
|
|
int sapp_gl_get_minor_version(void)
|
|
|
- Returns the major and minor version of the GL context
|
|
|
- (only for SOKOL_GLCORE, all other backends return zero here, including SOKOL_GLES3)
|
|
|
+ bool sapp_gl_is_gles(void)
|
|
|
+ Returns the major and minor version of the GL context and
|
|
|
+ whether the GL context is a GLES context
|
|
|
|
|
|
const void* sapp_android_get_native_activity(void);
|
|
|
On Android, get the native activity ANativeActivity pointer, otherwise
|
|
@@ -2010,9 +2011,9 @@ SOKOL_APP_API_DECL const void* sapp_wgpu_get_depth_stencil_view(void);
|
|
|
|
|
|
/* GL: get framebuffer object */
|
|
|
SOKOL_APP_API_DECL uint32_t sapp_gl_get_framebuffer(void);
|
|
|
-/* GL: get major version (only valid for desktop GL) */
|
|
|
+/* GL: get major version */
|
|
|
SOKOL_APP_API_DECL int sapp_gl_get_major_version(void);
|
|
|
-/* GL: get minor version (only valid for desktop GL) */
|
|
|
+/* GL: get minor version */
|
|
|
SOKOL_APP_API_DECL int sapp_gl_get_minor_version(void);
|
|
|
/* GL: return true if the context is GLES */
|
|
|
SOKOL_APP_API_DECL bool sapp_gl_is_gles(void);
|