aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sokol_app.h4
-rw-r--r--sokol_fetch.h1
-rw-r--r--util/sokol_gl.h4
-rw-r--r--util/sokol_imgui.h4
4 files changed, 13 insertions, 0 deletions
diff --git a/sokol_app.h b/sokol_app.h
index e0bc5cf3..93300e2f 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -941,6 +941,10 @@ SOKOL_API_DECL const void* sapp_android_get_native_activity(void);
#ifdef __cplusplus
} /* extern "C" */
+
+/* reference-based equivalents for C++ */
+inline int sapp_run(const sapp_desc& desc) { return sapp_run(&desc); }
+
#endif
#endif // SOKOL_APP_INCLUDED
diff --git a/sokol_fetch.h b/sokol_fetch.h
index 68ca33ed..8db9cfbf 100644
--- a/sokol_fetch.h
+++ b/sokol_fetch.h
@@ -939,6 +939,7 @@ SOKOL_API_DECL void sfetch_continue(sfetch_handle_t h);
/* reference-based equivalents for c++ */
inline void sfetch_setup(const sfetch_desc_t& desc) { return sfetch_setup(&desc); }
+inline sfetch_handle_t sfetch_send(const sfetch_request_t& request) { return sfetch_send(&request); }
#endif
#endif // SOKOL_FETCH_INCLUDED
diff --git a/util/sokol_gl.h b/util/sokol_gl.h
index ff604fc9..12f4f406 100644
--- a/util/sokol_gl.h
+++ b/util/sokol_gl.h
@@ -577,6 +577,10 @@ SOKOL_API_DECL void sgl_draw(void);
#ifdef __cplusplus
} /* extern "C" */
+
+/* reference-based equivalents for C++ */
+inline void sgl_setup(const sgl_desc_t& desc) { return sgl_setup(&desc); }
+inline sgl_pipeline sgl_make_pipeline(const sg_pipeline_desc& desc) { return sgl_make_pipeline(&desc); }
#endif
#endif /* SOKOL_GL_INCLUDED */
diff --git a/util/sokol_imgui.h b/util/sokol_imgui.h
index 7cc1bd50..16c5e1e2 100644
--- a/util/sokol_imgui.h
+++ b/util/sokol_imgui.h
@@ -233,6 +233,10 @@ SOKOL_API_DECL void simgui_shutdown(void);
#ifdef __cplusplus
} /* extern "C" */
+
+/* reference-based equivalents for C++ */
+inline void simgui_setup(const simgui_desc_t& desc) { return simgui_setup(&desc); }
+
#endif
#endif /* SOKOL_IMGUI_INCLUDED */