Our great sponsors
-
webview
Tiny cross-platform webview library for C/C++. Uses WebKit (GTK/Cocoa) and Edge WebView2 (Windows).
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
You might consider webview which is a C++ single header, cross-platform webview library. It uses WebKit (on Mac and Linux) and Edge with Chromium backend (on Windows). Unlike CEF and Electron, since it uses each platforms native webview control, the resulting binary is kilobytes in size rather than hundreds of megabytes. They have a code example demonstrating how C++ and JavaScript can communicate. You could easily write the bulk of your game logic in C++ and use HTML, CSS, and JavaScript for display only. Heck, since it's a full browser, you could even setup an NPM package for your game, bring in web dependencies if you wish, and code in a type-safe language that compiles to JavaScript, like TypeScript.
You mean Dear Imgui?
There's also nuklear . It's a immediate-mode gui, but with broader focus than dear-imgui. Never used it tho.
There is a framework, RmlUI that allows you to specify your UI as HTML and a flavor of CSS. It's a descendant of the old libRocket library. There are some engines/frameworks, such as rbfx that integrate RmlUI as a UI option, and that support WebAssembly as a build path for web deployment, alongside traditional native .EXE build paths.
There is a framework, RmlUI that allows you to specify your UI as HTML and a flavor of CSS. It's a descendant of the old libRocket library. There are some engines/frameworks, such as rbfx that integrate RmlUI as a UI option, and that support WebAssembly as a build path for web deployment, alongside traditional native .EXE build paths.
- All my Preact code is in this folder: https://github.com/connorjclark/gridia-2019-wip/blob/master/src/client/ui/ - Most complex one: https://github.com/connorjclark/gridia-2019-wip/blob/master/src/client/ui/admin-window.tsx - CSS: https://github.com/connorjclark/gridia-2019-wip/blob/master/src/client/styles/main.css